YOrch 1.0.0
Loading...
Searching...
No Matches
retry.hpp File Reference
Include dependency graph for retry.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yorch::retry_fixed_policy
 Retry policy that allows a fixed number of additional retries. More...
 
struct  yorch::retry_fixed_passthrough_policy
 Retry policy that allows a fixed number of retries and then preserves the final retry result unchanged. More...
 
struct  yorch::retry_forever_policy
 Retry policy that keeps retrying for as long as the task requests it. More...
 
struct  yorch::retry_task< Task, Policy >
 Retry adapter that re-invokes a task when it returns retry. More...
 

Namespaces

namespace  yorch
 

Functions

template<typename Task , typename Policy >
requires retry_policy<std::decay_t<Policy>>
constexpr auto yorch::with_retry (Task &&task, Policy &&policy)
 Wraps a task so retry results are handled by a user retry policy.