Awaitable that unwinds an owned result on the error path.
Declared in <folly/result/detail/result_or_unwind.h>
template<typename>
class or_unwind_owning;
| Name | Description |
|---|---|
or_unwind_owning<error_or_stopped> | co_await or_unwind_owning(error_or_stopped{...}) co_await or_unwind_owning(stopped_result) co_await or_unwind(stopped_result) |
or_unwind_owning<result<T>> | co_await or_unwind_owning(res) takes ownership of res. |
or_unwind_owning<value_only_result<T>> | or_unwind_owning(r) takes ownership of r, while co_await returns it. |
| Name | Description |
|---|---|
or_unwind_owning<result<T>> | Deduction guide: a result<T> yields or_unwind_owning<result<T>>. |
or_unwind_owning<value_only_result<T>> | Deduction guide for or_unwind_owning from a value_only_result. |