folly::coro::ViaIfAsyncAwaitable

Awaitable that reschedules its inner awaitable onto an executor.

Synopsis

Declared in <folly/coro/ViaIfAsync.h>

template<typename Awaitable>
class ViaIfAsyncAwaitable;

Member Functions

NameDescription
ViaIfAsyncAwaitable [constructor]Constructs the awaitable from an executor and an inner awaitable.
operator co_await Produces the awaiter for this awaitable.

Friends

NameDescription
folly::coro::tag_invokeAdapts the awaitable into an async-stack-aware awaitable.

Non-Member Functions

NameDescription
co_viaIfAsyncAdapts the bound task to run on the given executor when awaited.