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

◆ complete_with_value() [2/2]

template<typename T>
bool fl::task::Promise< T >::complete_with_value ( T && value)
inline

Definition at line 188 of file promise.h.

188 {
189 if (!valid()) return false;
190 return mImpl->resolve(fl::move(value));
191 }
fl::shared_ptr< detail::PromiseImpl< T > > mImpl
Shared pointer to implementation - this allows copying and sharing Promise state.
Definition promise.h:209
const T & value() const FL_NOEXCEPT
Get the result value (only valid if is_resolved() returns true)
Definition promise.h:158
bool valid() const FL_NOEXCEPT
Check if Promise is valid.
Definition promise.h:108
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
Definition promise.h:58

References FL_NOEXCEPT, mImpl, fl::fl::move(), valid(), and value().

+ Here is the call graph for this function: