folly::coro::ViaIfAsyncAwaitable::ViaIfAsyncAwaitable

Constructs the awaitable from an executor and an inner awaitable.

Synopsis

Declared in <folly/coro/ViaIfAsync.h>

explicit
ViaIfAsyncAwaitable(
    folly::Executor::KeepAlive<> executor,
    Awaitable&& awaitable) noexcept(/* see-below */);

Exception specification

This function is potentially-throwing unless std::is_nothrow_move_constructible<Awaitable>::value.

Parameters

NameDescription
executorthe executor to resume on
awaitablethe inner awaitable