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

◆ resolve() [2/2]

template<typename T>
static Promise< T > fl::task::Promise< T >::resolve ( T && value)
inlinestatic

Create a resolved Promise with value (move version)

Definition at line 74 of file promise.h.

74 { // okay static in header
75 auto p = create();
77 return p;
78 }
const T & value() const FL_NOEXCEPT
Get the result value (only valid if is_resolved() returns true)
Definition promise.h:158
bool complete_with_value(const T &value) FL_NOEXCEPT
Complete the Promise with a result (used by networking library)
Definition promise.h:183
static Promise< T > create() FL_NOEXCEPT
Create a pending Promise.
Definition promise.h:61
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
Definition promise.h:58

References Promise(), create(), FL_NOEXCEPT, fl::fl::move(), and value().

+ Here is the call graph for this function: