YOrch 1.0.0
Loading...
Searching...
No Matches
yorch::retry_fixed_passthrough_policy Struct Reference

Retry policy that allows a fixed number of retries and then preserves the final retry result unchanged. More...

#include <retry.hpp>

Public Member Functions

constexpr bool should_retry (std::size_t retry_count) const noexcept
 

Static Public Member Functions

template<typename Raw >
static constexpr std::remove_cvref_t< Raw > on_exhausted (Raw &&raw) noexcept
 

Public Attributes

std::size_t max_retries = 0
 

Detailed Description

Retry policy that allows a fixed number of retries and then preserves the final retry result unchanged.

Definition at line 33 of file retry.hpp.

Member Function Documentation

◆ on_exhausted()

template<typename Raw >
static constexpr std::remove_cvref_t< Raw > yorch::retry_fixed_passthrough_policy::on_exhausted ( Raw &&  raw)
inlinestaticconstexprnoexcept

Definition at line 41 of file retry.hpp.

◆ should_retry()

constexpr bool yorch::retry_fixed_passthrough_policy::should_retry ( std::size_t  retry_count) const
inlineconstexprnoexcept

Definition at line 36 of file retry.hpp.

Member Data Documentation

◆ max_retries

std::size_t yorch::retry_fixed_passthrough_policy::max_retries = 0

Definition at line 34 of file retry.hpp.


The documentation for this struct was generated from the following file: