commit | 78afdac0840e9625a22f8aa05e701c9f483f0c4e | [log] [tgz] |
---|---|---|
author | Gareth Watts <gareth@omnipotent.net> | Wed Apr 01 02:23:44 2020 |
committer | Cenk Altı <cenkalti@gmail.com> | Fri Apr 03 08:15:40 2020 |
tree | a920b3f03805bc406939e57e943774568319d08e | |
parent | e13aad97be0886358290fe5f1cce951f777c415d [diff] |
Fix crash if nil passed to NewTickerWithTimer Doc for function says that passing nil for the timer argument should cause the default system timer to be used. Ensure that that timer is actually assigned.
This is a Go port of the exponential backoff algorithm from Google's HTTP Client Library for Java.
Exponential backoff is an algorithm that uses feedback to multiplicatively decrease the rate of some process, in order to gradually find an acceptable rate. The retries exponentially increase and stop increasing when a certain threshold is met.
Import path is github.com/cenkalti/backoff/v4
. Please note the version part at the end.
godoc.org does not support modules yet, so you can use https://godoc.org/gopkg.in/cenkalti/backoff.v4 to view the documentation.