Definition at line 293 of file promise.h.
293 {
295
298
301 }
302
303 return true;
304 }
const T & value() const FL_NOEXCEPT
Get value (only valid if resolved)
void process_callbacks() FL_NOEXCEPT
Process pending callbacks.
void set_state(PromiseState_t s) FL_NOEXCEPT
Write the state atomically.
fl::function< void(const T &)> mThenCallback
PromiseState_t state() const FL_NOEXCEPT
Read the state atomically.
Implementation class for Promise - holds the actual state and logic.
constexpr remove_reference< T >::type && move(T &&t) FL_NOEXCEPT
References FL_NOEXCEPT, mCallbacksProcessed, fl::fl::move(), mThenCallback, mValue, fl::task::detail::PENDING, process_callbacks(), fl::task::detail::RESOLVED, set_state(), state(), and value().