Definition at line 202 of file promise.h.
202 {
203 if (!
valid())
return false;
205 }
bool valid() const
Check if promise is valid.
const T & value() const
Get the result value (only valid if is_resolved() returns true)
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, fl::move(), valid(), and value().