Create a resolved Promise with value (move version)
Definition at line 74 of file promise.h.
74 {
78 }
const T & value() const FL_NOEXCEPT
Get the result value (only valid if is_resolved() returns true)
bool complete_with_value(const T &value) FL_NOEXCEPT
Complete the Promise with a result (used by networking library)
static Promise< T > create() FL_NOEXCEPT
Create a pending Promise.
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
References Promise(), create(), FL_NOEXCEPT, fl::fl::move(), and value().