Skip to main content

Module retry

Module retry 

Source
Expand description

Retry policy with exponential backoff for transient errors.

Mirrors the Go reference client’s RetryPolicy/Retry: a closure is re-invoked up to RetryPolicy::max_attempts times, but only when the returned error is Error::is_retryable. Non-retryable errors are returned immediately.

Structs§

RetryPolicy
Configures retry behavior for transient (retryable) errors.

Functions§

retry
Execute f up to policy.max_attempts times, retrying only when the returned error is Error::is_retryable.