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

◆ is_completed()

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

Check if promise is completed (resolved or rejected)

Definition at line 154 of file promise.h.

154 {
155 if (!valid()) return false;
156 return mImpl->is_completed();
157 }
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 mImpl, and valid().

Referenced by fl::await_top_level(), and fl::FetchManager::cleanup_completed_promises().

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