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

Name

Description

folly_private_value_only_awaitable_t

Marker tag identifying this type as a value‐only awaitable.

Protected Using Declarations

Return Value

Note

The return value should not be discarded.

Created with MrDocs