Awaitable that short-circuits a coroutine with an unexpected error.
Declared in <folly/Expected.h>
template<typename Error>
struct UnexpectedAwaitable;
| Name | Description |
|---|---|
UnexpectedAwaitable [constructor] | Wraps an Unexpected to be awaited. |
await_ready | Reports whether the awaited operation is ready. |
await_resume | Resumes the coroutine; never actually called for this awaitable. |
await_suspend | Stores the error into the promise and aborts the coroutine. |
| Name | Description |
|---|---|
o_ | The error that aborts the coroutine. |
| Name | Description |
|---|---|
::folly::operator co_await | Enables co_await on an Unexpected to short-circuit with an error. |