Creates a lifetime-safe async closure task from bound args and a coroutine.
Declared in <folly/coro/safe/AsyncClosure.h>
template<async_closure_config Cfg = async_closure_config{}>
auto
async_closure(
auto bargs,
auto&& make_inner_coro);
the outer coroutine task for the closure
| Name | Description |
|---|---|
| bargs | the bound arguments (typically bind::args{...}) |
| make_inner_coro | a callable that builds the inner coroutine |