YOrch 1.0.0
Loading...
Searching...
No Matches
yorch::retry_policy Concept Reference

Reports whether a retry policy exposes the minimal protocol required by with_retry(...). More...

#include <concepts.hpp>

Concept definition

template<typename Policy>
requires(const std::remove_cvref_t<Policy>& policy, std::size_t retry_count) {
{ policy.should_retry(retry_count) } noexcept -> std::convertible_to<bool>;
}
Reports whether a retry policy exposes the minimal protocol required by with_retry(....
Definition concepts.hpp:83

Detailed Description

Reports whether a retry policy exposes the minimal protocol required by with_retry(...).

The policy is asked whether one more retry should be attempted after the wrapped task has already returned step_status::retry. The argument counts how many retries have already been granted for the current execution of the wrapped node.

Template Parameters
PolicyCandidate retry policy type.

Definition at line 83 of file concepts.hpp.