An awaitable that is immediately ready and yields a stored value on resume.
Synopsis
Declared in <folly/coro/Coroutine.h>
template<typename T = void>
class ready_awaitable;
Description
The value type is permitted to be a reference.
Member Functions
Name |
Description |
|
Constructs the awaitable holding the value to return on resume. |
Returns whether the awaitable is ready, which is always true. |
|
Returns the stored value. |
|
Does nothing since the awaitable never suspends. |
Specializations
Name |
Created with MrDocs