63 throw_exception<PromiseAlreadySatisfied>();
90 throw_exception<FutureAlreadyRetrieved>();
116 template <
typename F>
void setInterruptHandler(F &&fn)
void throwIfFulfilled() const
static Promise< T > makeEmpty() noexcept
constexpr detail::Map< Move > move
void coreDetachPromiseMaybeWithResult(Core< T > &core)
bool isFulfilled() const noexcept
void setException(exception_wrapper ew)
—— Concurrent Priority Queue Implementation ——
requires E e noexcept(noexcept(s.error(std::move(e))))
void setTry(Try< T > &&t)
void detachFuture() noexcept
void detachPromise() noexcept
FOLLY_ATTR_VISIBILITY_HIDDEN static FOLLY_ALWAYS_INLINE InlineExecutor & instance() noexcept
void setInterruptHandler(F &&fn)
static const char *const value
**Optimized Holders **The template hazptr_array< M > provides most of the functionality *of M hazptr_holder s but with faster construction destruction *for M
std::enable_if< std::is_same< Unit, B >::value, void >::type setValue()
SemiFuture< T > getSemiFuture()
T exchange(T &obj, U &&new_value)
std::enable_if< !std::is_same< invoke_result_t< F >, void >::value, Try< invoke_result_t< F > > >::type makeTryWith(F &&f)
void setResult(Try< T > &&t)
Promise & operator=(Promise const &)=delete
bool hasResult() const noexcept