FastLED 3.9.15
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_NOEXCEPT
Process pending callbacks.
Definition promise.h:366
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, mCatchCallback, fl::fl::move(), process_callbacks(), fl::task::detail::REJECTED, and state().

+ Here is the call graph for this function: