Skip to content

Commit

Permalink
update ExponentialBackOff.Reset docs; fix #69
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Nov 23, 2019
1 parent 8e09ea4 commit 0e8b8a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exponential.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (t systemClock) Now() time.Time {
var SystemClock = systemClock{}

// Reset the interval back to the initial retry interval and restarts the timer.
// Reset must be called before using b.
func (b *ExponentialBackOff) Reset() {
b.currentInterval = b.InitialInterval
b.startTime = b.Clock.Now()
Expand Down

0 comments on commit 0e8b8a8

Please sign in to comment.