folly::coro::value_or_fatal

value_or_fatal<Task<T>, Policy> wraps a task to guarantee value-only completion.

Synopsis

Declared in <folly/coro/ValueOrFatal.h>

template<
    typename Inner,
    auto Policy>
class [[nodiscard]] value_or_fatal final

Type Aliases

NameDescription
folly_private_value_only_awaitable_t Marker tag identifying this type as a value-only awaitable.

Protected Using Declarations

Name
Unnamed using

Return Value

NOTE

The return value should not be discarded.