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

◆ update()

template<typename T>
void fl::task::Promise< T >::update ( )
inline

Update Promise state in main loop - should be called periodically This processes pending callbacks when the Promise completes.

Definition at line 134 of file promise.h.

134 {
135 if (!valid()) return;
136 mImpl->update();
137 }
fl::shared_ptr< detail::PromiseImpl< T > > mImpl
Shared pointer to implementation - this allows copying and sharing Promise state.
Definition promise.h:209
bool valid() const FL_NOEXCEPT
Check if Promise is valid.
Definition promise.h:108

References FL_NOEXCEPT, mImpl, and valid().

Referenced by fl::task::await_top_level().

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