proxygen
|
#include <FutureExecutor.h>
Public Member Functions | |
template<typename... Args> | |
FutureExecutor (Args &&...args) | |
template<typename F > | |
std::enable_if< folly::isFuture< invoke_result_t< F > >::value, invoke_result_t< F > >::type | addFuture (F func) |
template<typename F > | |
std::enable_if< !folly::isFuture< invoke_result_t< F > >::value, folly::Future< typename folly::lift_unit< invoke_result_t< F > >::type > >::type | addFuture (F func) |
Definition at line 25 of file FutureExecutor.h.
|
inlineexplicit |
Definition at line 28 of file FutureExecutor.h.
References type, and folly::value().
|
inline |
Definition at line 44 of file FutureExecutor.h.
References add, folly::Promise< T >::getFuture(), folly::gen::move, folly::Promise< T >::setTry(), folly::pushmi::detail::t, folly::T, type, and folly::value().
Referenced by futureExecutor().
|
inline |
Definition at line 69 of file FutureExecutor.h.
References add, folly::Promise< T >::getFuture(), folly::gen::move, folly::Promise< T >::setWith(), folly::T, and type.