Get the error (only valid if is_rejected() returns true)
Definition at line 181 of file promise.h.
181 {
185 }
186 return mImpl->error();
187 }
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.
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
References mImpl, and valid().
Referenced by fl::await_top_level(), complete_with_error(), and reject().