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

◆ process_callbacks()

template<typename T>
void fl::task::detail::PromiseImpl< T >::process_callbacks ( )
inlineprivate

Process pending callbacks.

Definition at line 366 of file promise.h.

366 {
367 if (mCallbacksProcessed) return;
368
372 } else if (s == PromiseState_t::REJECTED && mCatchCallback) {
374 }
375
376 mCallbacksProcessed = true;
377 }
fl::function< void(const Error &)> mCatchCallback
Definition promise.h:351
fl::function< void(const T &)> mThenCallback
Definition promise.h:350
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

References FL_NOEXCEPT, mCallbacksProcessed, mCatchCallback, mError, mThenCallback, mValue, fl::task::detail::REJECTED, fl::task::detail::RESOLVED, and state().

Referenced by reject(), resolve(), resolve(), set_catch_callback(), set_then_callback(), and update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: