Create a resolved promise with value (move version)
Definition at line 88 of file promise.h.
88 {
92 }
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(), fl::move(), and value().