FastLED 3.10.6
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 }
fl::function< void(const T &)> mThenCallback
Definition promise.h:350
void process_callbacks() FL_NO_EXCEPT
Process pending callbacks.
Definition promise.h:366
PromiseState_t state() const FL_NO_EXCEPT
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_NO_EXCEPT
Definition move.h:28

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

+ Here is the call graph for this function: