Converts the given SemiAwaitable to a Future, starting it on the Executor.
Declared in <folly/coro/FutureUtil.h>
template<typename SemiAwaitable>
folly::Future<lift_unit_t<semi_await_result_t<remove_reference_wrapper_t<SemiAwaitable>>>>
toFuture(
SemiAwaitable&& a,
Executor::KeepAlive<> ex);
A Future for the result of the awaitable.
| Name | Description |
|---|---|
| a | The SemiAwaitable to convert and start. |
| ex | The executor on which to start and resume the work. |