From 9b498a2346338ac8fbf441f57d3036a6b123f963 Mon Sep 17 00:00:00 2001 From: Jan Srzednicki Date: Fri, 27 Oct 2023 11:16:43 +0200 Subject: [PATCH] Document `tokio::time::sleep` usage. --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c097534..9c544eb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,10 @@ //! - [`ExponentialBackoff`]: backoff with exponential delay, also provides jitter supports. //! - [`FibonacciBackoff`]: backoff with fibonacci delay, also provides jitter supports. //! +//! Internally, `tokio::time::sleep()` will be used to sleep between retries, therefore +//! it will respect [pausing/auto-advancing](https://docs.rs/tokio/latest/tokio/time/fn.pause.html) +//! tokio's Runtime semantics, if enabled. +//! //! # Examples //! //! Retry with default settings.