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

◆ set_then_callback()

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

Set success callback.

Definition at line 264 of file promise.h.

264 {
266 // If already resolved, process callback immediately
269 }
270 }
void process_callbacks()
Process pending callbacks.
Definition promise.h:369
PromiseState_t mState
Definition promise.h:359
fl::function< void(const T &)> mThenCallback
Definition promise.h:363
Implementation class for promise - holds the actual state and logic.
Definition promise.h:259
constexpr remove_reference< T >::type && move(T &&t) noexcept
Definition move.h:27

References mCallbacksProcessed, fl::move(), mState, mThenCallback, process_callbacks(), and fl::detail::RESOLVED.

+ Here is the call graph for this function: