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

◆ is_rejected()

template<typename T>
bool fl::task::Promise< T >::is_rejected ( ) const
inline

Check if Promise is rejected (completed with error)

Definition at line 152 of file promise.h.

152 {
153 if (!valid()) return false;
154 return mImpl->is_rejected();
155 }
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

References FL_NOEXCEPT, mImpl, and valid().

+ Here is the call graph for this function: