Skip to main content

Module retry

Module retry 

Source
Expand description

Minimal retry helpers (replaces git-only resilient-call for crates.io).

Structs§

RetryError
Error wrapper that can carry a source error or a timeout.
RetryPolicy
Simple retry policy: max attempts with exponential backoff + jitter-ish delay.

Functions§

retry
Retry make_fut up to policy.max_attempts when is_retryable says so.
with_timeout
Run fut with an outer timeout. On timeout returns RetryError with no source.