27 template <
typename T,
typename BatonT = Baton>
82 static value_type
await(F&& func);
85 Promise(
folly::
Try<
T>& value, BatonT& baton);
92 typename
std::enable_if<
98 typename
std::enable_if<
100 std::is_same<T,
void>::value>::
type 106 #include <folly/fibers/Promise-inl.h>
void setTry(folly::Try< T > &&t)
typename invoke_result< F, Args... >::type invoke_result_t
—— Concurrent Priority Queue Implementation ——
requires E e noexcept(noexcept(s.error(std::move(e))))
void setException(folly::exception_wrapper)
std::enable_if< std::is_convertible< invoke_result_t< F >, T >::value &&!std::is_same< T, void >::value >::type fulfilHelper(F &&func)
**Optimized Holders **The template hazptr_array< M > provides most of the functionality *of M hazptr_holder s but with faster construction destruction *for M
Promise(const Promise &)=delete
void throwIfFulfilled() const
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)
static value_type await(F &&func)
Promise & operator=(const Promise &)=delete