Expand description
Retry policy and helper (port of Go retry.go).
Structs§
- Retry
Policy - Retry policy: exponential backoff with a maximum number of attempts. Defaults match the Go reference driver: 3 attempts, 1s initial backoff, 30s max backoff, multiplier 2.0. No jitter.
Functions§
- retry
- Run
opwith retries according topolicy. Retries only errors for whichcrate::error::Error::is_retryableis true. Returns the last error after exhausting attempts, or immediately on success / non-retryable error.