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

ready_awaitable [constructor]

Constructs the awaitable holding the value to return on resume.

await_ready

Returns whether the awaitable is ready, which is always true.

await_resume

Returns the stored value.

await_suspend

Does nothing since the awaitable never suspends.

Specializations

Name

ready_awaitable<void>

Created with MrDocs