|
YOrch 1.0.0
|
Retry policy that allows a fixed number of additional retries. 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 auto | on_exhausted (Raw &&raw) noexcept |
Public Attributes | |
| std::size_t | max_retries = 0 |
Retry policy that allows a fixed number of additional retries.
max_retries counts retries after the initial attempt. For example, retry_fixed_policy {2} means "run once, then allow up to two more attempts
if the task keeps returning `retry`". When that retry budget is exhausted, the adapter converts the final retry result into failure.
|
inlinestaticconstexprnoexcept |
|
inlineconstexprnoexcept |