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

Name

Description

func

Callable invoked with the promise to fulfill.

Created with MrDocs