YOrch 1.0.0
Loading...
Searching...
No Matches
result_helpers.hpp File Reference
#include <concepts>
#include <functional>
#include <utility>
#include "traits.hpp"
Include dependency graph for result_helpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  yorch
 
namespace  yorch::detail
 

Concepts

concept  yorch::detail::retry_exhaustion_policy
 

Functions

template<typename R >
constexpr auto yorch::detail::default_catch_failure_result () noexcept
 Produces the default failure result used by catch_as_failure(task).
 
template<typename R , typename Policy >
auto yorch::detail::policy_catch_failure_result (Policy &policy, const std::exception_ptr &ep) noexcept
 Invokes a fallback policy to produce the exception-path raw result.
 
template<typename PolicyResult >
constexpr auto yorch::detail::void_task_success_result () noexcept
 Produces the success-path raw result for a wrapped void task when a custom fallback policy is installed.
 
template<typename R >
constexpr bool yorch::detail::raw_result_requests_retry (const R &r) noexcept
 
template<typename Raw >
constexpr auto yorch::detail::retry_exhausted_as_failure (const Raw &raw) noexcept
 
template<typename Policy , typename Raw >
constexpr auto yorch::detail::handle_retry_exhausted (const Policy &policy, Raw &&raw) noexcept
 

Variables

template<typename R >
constexpr bool yorch::detail::retry_status_capable_result_v