Awaitable that unwraps an Expected inside a coroutine.
Declared in <folly/Expected.h>
template<
typename Value,
typename Error>
struct ExpectedAwaitable;
| Name | Description |
|---|---|
ExpectedAwaitable [constructor] | Wraps an Expected to be awaited. |
await_ready | Reports whether the Expected already holds a value. |
await_resume | Yields the contained value to the awaiting expression. |
await_suspend | Propagates the error into the promise and aborts the coroutine. |
| Name | Description |
|---|---|
o_ | The awaited Expected. |
| Name | Description |
|---|---|
::folly::operator co_await | Enables co_await on an Expected to unwrap its value or propagate its error. |