![]() |
Scarab
v3.9.2
Project 8 C++ Utility Library
|
Class that performs an action using exponential backoff. More...
#include <exponential_backoff.hh>
Public Member Functions | |
exponential_backoff (std::function< bool(x_args...) > an_action, unsigned a_max_attempts=10, unsigned a_base_delay_ms=100) | |
virtual | ~exponential_backoff () |
unsigned | go (x_args... args) |
returns the number of attempts made at calling the function (including the last, successful or not) More... | |
snake_case_mv_referrable (std::function< bool(x_args...) >, action) | |
snake_case_mv_accessible (unsigned, max_attempts) | |
snake_case_mv_accessible (unsigned, base_delay_ms) | |
Class that performs an action using exponential backoff.
Definition at line 34 of file exponential_backoff.hh.
exponential_backoff | ( | std::function< bool(x_args...) > | an_action, |
unsigned | a_max_attempts = 10 , |
||
unsigned | a_base_delay_ms = 100 |
||
) |
Definition at line 54 of file exponential_backoff.hh.
|
virtual |
Definition at line 63 of file exponential_backoff.hh.
unsigned go | ( | x_args... | args | ) |
returns the number of attempts made at calling the function (including the last, successful or not)
Definition at line 67 of file exponential_backoff.hh.
snake_case_mv_accessible | ( | unsigned | , |
max_attempts | |||
) |
snake_case_mv_accessible | ( | unsigned | , |
base_delay_ms | |||
) |
snake_case_mv_referrable | ( | std::function< bool(x_args...) > | , |
action | |||
) |