Check if promise is rejected (completed with error)
Definition at line 166 of file promise.h.
166 {
167 if (!
valid())
return false;
168 return mImpl->is_rejected();
169 }
bool valid() const
Check if promise is valid.
fl::shared_ptr< detail::PromiseImpl< T > > mImpl
Shared pointer to implementation - this allows copying and sharing promise state.
References mImpl, and valid().