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

◆ complete_with_error() [2/2]

template<typename T>
bool fl::task::Promise< T >::complete_with_error ( const fl::string & error_message)
inline

Definition at line 199 of file promise.h.

199 {
200 if (!valid()) return false;
201 return mImpl->reject(Error(error_message));
202 }
fl::shared_ptr< detail::PromiseImpl< T > > mImpl
Shared pointer to implementation - this allows copying and sharing Promise state.
Definition promise.h:209
bool valid() const FL_NOEXCEPT
Check if Promise is valid.
Definition promise.h:108
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
Definition promise.h:58

References fl::Error, FL_NOEXCEPT, mImpl, and valid().

+ Here is the call graph for this function: