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

◆ is_completed()

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

Check if Promise is completed (resolved or rejected)

Definition at line 140 of file promise.h.

140 {
141 if (!valid()) return false;
142 return mImpl->is_completed();
143 }
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().

Referenced by fl::task::await_top_level().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: