folly::fibers::async::promiseWait

Async annotated wrapper around fibers::await

Synopsis

Declared in <folly/fibers/async/Promise.h>

template<typename F>
Async<FirstArgOf<F>::type::value_type>
promiseWait(F&& func);

Return Value

The awaited value, wrapped as Async.

Parameters

NameDescription
funcCallable invoked with the promise to fulfill.