folly::coro::variant_awaitable

An awaitable backed by one of several possible underlying awaitables.

Synopsis

Declared in <folly/coro/Coroutine.h>

template<typename... A>
class variant_awaitable;

Member Functions

NameDescription
await_ready Returns whether the active awaitable is ready without suspending.
await_resume Resumes and returns the active awaitable's result.
await_suspend Suspends the awaiting coroutine on the active awaitable.

Using Declarations

Name
Unnamed using