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

◆ reject() [1/2]

template<typename T>
static promise< T > fl::promise< T >::reject ( const Error & error)
inlinestatic

Create a rejected promise with error.

Definition at line 95 of file promise.h.

95 {
96 auto p = create();
98 return p;
99 }
static promise< T > create()
Create a pending promise.
Definition promise.h:75
const Error & error() const
Get the error (only valid if is_rejected() returns true)
Definition promise.h:181
bool complete_with_error(const Error &error)
Complete the promise with an error (used by networking library)
Definition promise.h:208
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
Definition promise.h:72

References promise(), create(), and error().

Referenced by fl::make_rejected_promise(), fl::make_rejected_promise(), and reject().

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