diff --git a/docs/source-1.0/spec/waiters.rst b/docs/source-1.0/spec/waiters.rst index 4465a63ae82..371eaac3223 100644 --- a/docs/source-1.0/spec/waiters.rst +++ b/docs/source-1.0/spec/waiters.rst @@ -190,12 +190,12 @@ exponential backoff with jitter through the following algorithm: delay = random(minDelay, delay) if remainingTime - delay <= minDelay: - delay = remainingTime - minDelay + delay = remainingTime If the computed ``delay`` subtracted from ``remainingTime`` is less than -or equal to ``minDelay``, then set ``delay`` to ``remainingTime`` minus -``minDelay`` and perform one last retry. This prevents a waiter from waiting -needlessly only to exceed ``maxWaitTime`` before issuing a final request. +or equal to ``minDelay``, then set ``delay`` to ``remainingTime`` and +perform one last retry. This prevents a waiter from waiting needlessly +only to exceed ``maxWaitTime`` before issuing a final request. Using the default ``minDelay`` of 2, the default ``maxDelay`` of 120, a caller provided ``maxWaitTime`` of 300 (5 minutes), and assuming that requests diff --git a/docs/source-2.0/additional-specs/waiters.rst b/docs/source-2.0/additional-specs/waiters.rst index 45bbb5e733b..70ab82c83c9 100644 --- a/docs/source-2.0/additional-specs/waiters.rst +++ b/docs/source-2.0/additional-specs/waiters.rst @@ -191,12 +191,12 @@ exponential backoff with jitter through the following algorithm: delay = random(minDelay, delay) if remainingTime - delay <= minDelay: - delay = remainingTime - minDelay + delay = remainingTime If the computed ``delay`` subtracted from ``remainingTime`` is less than -or equal to ``minDelay``, then set ``delay`` to ``remainingTime`` minus -``minDelay`` and perform one last retry. This prevents a waiter from waiting -needlessly only to exceed ``maxWaitTime`` before issuing a final request. +or equal to ``minDelay``, then set ``delay`` to ``remainingTime`` and +perform one last retry. This prevents a waiter from waiting needlessly +only to exceed ``maxWaitTime`` before issuing a final request. Using the default ``minDelay`` of 2, the default ``maxDelay`` of 120, a caller provided ``maxWaitTime`` of 300 (5 minutes), and assuming that requests @@ -259,8 +259,8 @@ follows: - 296 - 4 * - 13 (last attempt) - - 2 - - 298 + - 4 + - 300 - N/A .. note::