Coroutine return object that materializes an Expected from a promise.
Declared in <folly/Expected.h>
template<
typename Value,
typename Error>
struct PromiseReturn;
| Name | Description |
|---|---|
PromiseReturn [constructor] | Constructors |
~PromiseReturn [destructor] | Destructor. |
operator Expected<Value, Error> | Converts the return object into the resulting Expected. |
| Name | Description |
|---|---|
pointer_ | Reference to the promise's pointer. |
storage_ | Storage for the result. |