FastLED 3.9.15
Loading...
Searching...
No Matches

◆ set_then_callback()

template<typename T>
void fl::task::detail::PromiseImpl< T >::set_then_callback ( fl::function< void(const T &)> callback)
inline

Set success callback.

Definition at line 250 of file promise.h.

250 {
252 // If already resolved, process callback immediately
255 }
256 }
void process_callbacks() FL_NOEXCEPT
Process pending callbacks.
Definition promise.h:366
fl::function< void(const T &)> mThenCallback
Definition promise.h:350
PromiseState_t state() const FL_NOEXCEPT
Read the state atomically.
Definition promise.h:356
Implementation class for Promise - holds the actual state and logic.
Definition promise.h:245
constexpr remove_reference< T >::type && move(T &&t) FL_NOEXCEPT
Definition s16x16x4.h:28

References FL_NOEXCEPT, mCallbacksProcessed, fl::fl::move(), mThenCallback, process_callbacks(), fl::task::detail::RESOLVED, and state().

+ Here is the call graph for this function: