Module fluvio_future::retry

source ·

Structs

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 in FnMut() -> Future structure. Each retry creates a new instance of Future and awaits it. Iterator Iterator<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.