Create a rejected promise with error.
Definition at line 95 of file promise.h.
95 {
99 }
static promise< T > create()
Create a pending promise.
const Error & error() const
Get the error (only valid if is_rejected() returns true)
bool complete_with_error(const Error &error)
Complete the promise with an error (used by networking library)
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
References promise(), create(), and error().
Referenced by fl::make_rejected_promise(), fl::make_rejected_promise(), and reject().