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

◆ resolve() [1/2]

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

Create a resolved promise with value.

Definition at line 81 of file promise.h.

81 {
82 auto p = create();
84 return p;
85 }
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(), and value().

Referenced by fl::execute_fetch_request(), and fl::make_resolved_promise().

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