Expand description
Jittered exponential backoff for 429 / 5xx / network errors (C9).
Structs§
- Jitter
Rng - A tiny SplitMix64 generator for jitter. Not cryptographic; seeded from the
std
RandomStateby default or from a fixed seed in simulations. - Retry
Policy - Retry policy:
max_attemptstries in total, delay of attemptn(from 0) uniformly in[d/2, d]withd = min(base * 2^n, max_delay)(“equal jitter”), or the server’sRetry-Afterwhen longer (capped atmax_delay).
Functions§
- parse_
retry_ after - Parses a
Retry-Afterheader given in seconds (the HTTP-date form is not used by the provider APIs graphrt talks to and is ignored).