Expand description
Shared exponential backoff calculations.
This module owns only mechanical delay arithmetic. Callers retain the policy for retryability, cancellation, reset conditions, and observability.
Functionsยง
- apply_
jitter - Applies an explicit percentage to a delay, saturating at
Duration::MAX. - cap_
delay - Applies a hard upper bound to a delay.
- exponential_
delay - Calculates an uncapped exponential delay for a zero-based retry index.
- randomized_
jitter - Applies a sampled percentage using the default thread-local random generator.