Complete the promise with an error (used by networking library)
Definition at line 208 of file promise.h.
208 {
209 if (!
valid())
return false;
211 }
const Error & error() const
Get the error (only valid if is_rejected() returns true)
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 error(), mImpl, and valid().