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

◆ resolve() [2/2]

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

Create a resolved promise with value (move version)

Definition at line 88 of file promise.h.

88 {
89 auto p = create();
91 return p;
92 }
static promise< T > create()
Create a pending promise.
Definition promise.h:75
bool complete_with_value(const T &value)
Complete the promise with a result (used by networking library)
Definition promise.h:197
const T & value() const
Get the result value (only valid if is_resolved() returns true)
Definition promise.h:172
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
Definition promise.h:72

References promise(), create(), fl::move(), and value().

+ Here is the call graph for this function: