Expand description
Retry queue — exponential backoff for failed operations.
Wraps an operation in retry logic: on failure, the operation is queued and retried with exponential backoff (with jitter) up to a configurable maximum number of attempts.
Structs§
- Retry
Config - Configuration for the retry queue.
- Retry
Entry - A pending retry entry.
- Retry
Queue - Thread-safe retry queue for items of type T.
Functions§
- delay_
for_ attempt - Compute the delay for a given attempt number (0-based).