FastLED 3.10.8
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_NO_EXCEPT
Check if Promise is valid.
Definition promise.h:108

References fl::FL_NO_EXCEPT, mImpl, and valid().

+ Here is the call graph for this function: