Awaitable that reschedules its inner awaitable onto an executor.
Declared in <folly/coro/ViaIfAsync.h>
template<typename Awaitable>
class ViaIfAsyncAwaitable;
| Name | Description |
|---|---|
ViaIfAsyncAwaitable [constructor] | Constructs the awaitable from an executor and an inner awaitable. |
operator co_await | Produces the awaiter for this awaitable. |
| Name | Description |
|---|---|
folly::coro::tag_invoke | Adapts the awaitable into an async-stack-aware awaitable. |
| Name | Description |
|---|---|
co_viaIfAsync | Adapts the bound task to run on the given executor when awaited. |