Expand description
Structs§
- Jittered
- Applies jitter to an inner wait strategy’s output.
- Wait
Capped - Clamps an inner wait strategy’s output to a maximum duration.
- Wait
Chain - A strategy that uses one wait strategy for the first
afterattempts, then switches to another. - Wait
Combine - Composite strategy that returns the sum of two strategies’ outputs.
- Wait
Decorrelated Jitter - A standalone jitter strategy where each delay is random between
baseand three times the previous delay. - Wait
Exponential - An exponentially increasing wait strategy.
- Wait
Fixed - A wait strategy that returns the same duration on every attempt.
- Wait
Linear - A linearly increasing wait strategy.
Traits§
- Wait
- Computes the delay duration between retry attempts.
Functions§
- decorrelated_
jitter - Produces a decorrelated jitter strategy:
random(base, last_sleep * 3). - exponential
- Produces an exponentially increasing strategy:
initial * 2^(n-1). - fixed
- linear