Skip to content

Commit 34d5e39

Browse files
committed
remove stale MaxElapsedTime comments
1 parent 5567bc7 commit 34d5e39

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

exponential.go

+1-8
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ multiplied by the exponential, that is, between 2 and 6 seconds.
2828
2929
Note: MaxInterval caps the RetryInterval and not the randomized interval.
3030
31-
If the time elapsed since an ExponentialBackOff instance is created goes past the
32-
MaxElapsedTime, then the method NextBackOff() starts returning backoff.Stop.
33-
34-
The elapsed time can be reset by calling Reset().
35-
36-
Example: Given the following default arguments, for 10 tries the sequence will be,
37-
and assuming we go over the MaxElapsedTime on the 10th try:
31+
Example: Given the following default arguments, for 9 tries the sequence will be:
3832
3933
Request # RetryInterval (seconds) Randomized Interval (seconds)
4034
@@ -47,7 +41,6 @@ and assuming we go over the MaxElapsedTime on the 10th try:
4741
7 5.692 [2.846, 8.538]
4842
8 8.538 [4.269, 12.807]
4943
9 12.807 [6.403, 19.210]
50-
10 19.210 backoff.Stop
5144
5245
Note: Implementation is not thread-safe.
5346
*/

0 commit comments

Comments
 (0)