Skip to main content

Module retry

Module retry 

Source
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§

RetryConfig
Configuration for the retry queue.
RetryEntry
A pending retry entry.
RetryQueue
Thread-safe retry queue for items of type T.

Functions§

delay_for_attempt
Compute the delay for a given attempt number (0-based).