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

◆ set_catch_callback()

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

Set error callback.

Definition at line 273 of file promise.h.

273 {
275 // If already rejected, process callback immediately
278 }
279 }
void process_callbacks()
Process pending callbacks.
Definition promise.h:369
PromiseState_t mState
Definition promise.h:359
fl::function< void(const Error &)> mCatchCallback
Definition promise.h:364
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, mCatchCallback, fl::move(), mState, process_callbacks(), and fl::detail::REJECTED.

+ Here is the call graph for this function: