Module fluvio_future::retry
source · Structs
- A retry strategy driven by exponential back-off.
- A retry strategy driven by the fibonacci series of intervals between retries.
- A retry strategy driven by a fixed interval between retries.
Traits
- An extension trait for
Future
that provides a convenient methods for retries.
Functions
- Provides
Future
with specified retries strategy. See retry_if for details. - Provides retry functionality in async context. The
Future
that you want to retry needs to be represented inFnMut() -> Future
structure. Each retry creates a new instance ofFuture
and awaits it. IteratorIterator<Item=Duration>
controls the number of retries and delays between them. If iterator returns None, retries stop. There are three common implementations of retry strategies: FixedDelay, FibonacciBackoff, and ExponentialBackoff.