FastLED 3.10.6
Loading...
Searching...
No Matches

◆ set_catch_callback()

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

Set error callback.

Definition at line 259 of file promise.h.

259 {
261 // If already rejected, process callback immediately
264 }
265 }
fl::function< void(const Error &)> mCatchCallback
Definition promise.h:351
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, mCatchCallback, fl::move(), process_callbacks(), fl::task::detail::REJECTED, and state().

+ Here is the call graph for this function: