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

◆ resolve() [2/2]

template<typename T>
bool fl::detail::PromiseImpl< T >::resolve ( T && value)
inline

Definition at line 304 of file promise.h.

304 {
305 if (mState != PromiseState_t::PENDING) return false;
306
309
310 // Process callback immediately if we have one
313 }
314
315 return true;
316 }
void process_callbacks()
Process pending callbacks.
Definition promise.h:369
PromiseState_t mState
Definition promise.h:359
const T & value() const
Get value (only valid if resolved)
Definition promise.h:349
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, mValue, fl::detail::PENDING, process_callbacks(), fl::detail::RESOLVED, and value().

+ Here is the call graph for this function: