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