Waits until the promise is resolved, rejected, or the context canceled.
(context.Context)
| 874 | type promise interface { |
| 875 | // Waits until the promise is resolved, rejected, or the context canceled. |
| 876 | await(context.Context) (Response, error) |
| 877 | } |
| 878 | |
| 879 | // async is an implementation of the promise interface which supports resolving |