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

◆ reject() [2/2]

template<typename T>
static promise< T > fl::promise< T >::reject ( const fl::string & error_message)
inlinestatic

Create a rejected promise with error message.

Definition at line 102 of file promise.h.

102 {
103 return reject(Error(error_message));
104 }
static promise< T > reject(const Error &error)
Create a rejected promise with error.
Definition promise.h:95
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
Definition promise.h:72

References promise(), and reject().

+ Here is the call graph for this function: