folly::expected_detail::PromiseReturn

Coroutine return object that materializes an Expected from a promise.

Synopsis

Declared in <folly/Expected.h>

template<
    typename Value,
    typename Error>
struct PromiseReturn;

Member Functions

NameDescription
PromiseReturn [constructor]Constructors
~PromiseReturn [destructor]Destructor.
operator Expected<Value, Error> Converts the return object into the resulting Expected.

Data Members

NameDescription
pointer_ Reference to the promise's pointer.
storage_ Storage for the result.