folly::expected_detail::Promise

Selects the appropriate coroutine promise for a value and error type.

Synopsis

Declared in <folly/Expected.h>

template<
    typename Value,
    typename Error>
struct Promise
    : conditional_t<ReturnsVoid<Value>, PromiseReturnsVoid<Value, Error>, PromiseReturnsValue<Value, Error>>