Async‐stack‐aware awaiter that reschedules its inner awaiter onto an executor.

Synopsis

Declared in <folly/coro/ViaIfAsync.h>

template<typename Awaitable>
class StackAwareViaIfAsyncAwaiter;

Member Functions

Name

Description

StackAwareViaIfAsyncAwaiter [constructor]

Constructs the awaiter from an executor and an inner awaitable.

await_ready

Reports whether the inner awaiter is already ready.

await_resume

Retrieves the inner awaiter's result and tears down the via coroutine.

await_resume_result

Retrieves the inner result as a result and tears down the coroutine.

await_resume_try

Retrieves the inner awaiter's result as a Try and tears down the coroutine.

await_suspend

Suspends the awaiting coroutine, rescheduling resumption on the executor.

Created with MrDocs