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

◆ reject() [2/2]

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

Create a rejected Promise with error message.

Definition at line 88 of file promise.h.

88 { // okay static in header
89 return reject(Error(error_message));
90 }
static Promise< T > reject(const Error &error) FL_NOEXCEPT
Create a rejected Promise with error.
Definition promise.h:81
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
Definition promise.h:58

References Promise(), fl::Error, FL_NOEXCEPT, and reject().

+ Here is the call graph for this function: