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