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

◆ complete_with_error() [1/2]

template<typename T>
bool fl::promise< T >::complete_with_error ( const Error & error)
inline

Complete the promise with an error (used by networking library)

Definition at line 208 of file promise.h.

208 {
209 if (!valid()) return false;
210 return mImpl->reject(error);
211 }
const Error & error() const
Get the error (only valid if is_rejected() returns true)
Definition promise.h:181
bool valid() const
Check if promise is valid.
Definition promise.h:122
fl::shared_ptr< detail::PromiseImpl< T > > mImpl
Shared pointer to implementation - this allows copying and sharing promise state.
Definition promise.h:223

References error(), mImpl, and valid().

+ Here is the call graph for this function: