From 05d4a85c2f4f838d2757305e736fa00a085e5f4e Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Wed, 10 May 2023 16:24:18 +0300 Subject: [PATCH] fixup: doc: many futures instead of tasks as in, you could run many of these futures with tokio::select within one task or `runtime.block_on`; it does not matter. --- libs/utils/src/shared_retryable.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/utils/src/shared_retryable.rs b/libs/utils/src/shared_retryable.rs index 4ecd53b42d..5e08663952 100644 --- a/libs/utils/src/shared_retryable.rs +++ b/libs/utils/src/shared_retryable.rs @@ -159,7 +159,7 @@ where { /// Restart a previously failed operation unless it already completed with a terminal result. /// - /// Many tasks can call this function and and get the terminal result from an earlier attempt + /// Many futures can call this function and and get the terminal result from an earlier attempt /// or start a new attempt, or join an existing one. /// /// Compared to `Self::try_restart`, this method also spawns the future to run, which would @@ -182,7 +182,7 @@ where /// Restart a previously failed operation unless it already completed with a terminal result. /// - /// Many tasks can call this function and get the terminal result from an earlier attempt or + /// Many futures can call this function and get the terminal result from an earlier attempt or /// start a new attempt, or join an existing one. /// /// If a task calling this method is cancelled, at worst, a new attempt which is immediatedly