rss2twitter/vendor/github.com/azr/backoff
2019-01-08 03:16:29 -06:00
..
.gitignore working but primitive 2018-12-05 00:15:53 -06:00
.travis.yml working but primitive 2018-12-05 00:15:53 -06:00
backoff.go working but primitive 2018-12-05 00:15:53 -06:00
backoff_test.go switch logging to lgr 2019-01-08 03:16:29 -06:00
example_test.go switch logging to lgr 2019-01-08 03:16:29 -06:00
exponential.go working but primitive 2018-12-05 00:15:53 -06:00
exponential_test.go switch logging to lgr 2019-01-08 03:16:29 -06:00
LICENSE working but primitive 2018-12-05 00:15:53 -06:00
linear.go working but primitive 2018-12-05 00:15:53 -06:00
linear_test.go switch logging to lgr 2019-01-08 03:16:29 -06:00
README.md working but primitive 2018-12-05 00:15:53 -06:00

backoff

GoDoc Build Status

This is a fork from the awesome cenkalti/backoff which is a go port from google-http-java-client.

This BackOff sleeps upon BackOff() and calculates its next backoff time instead of returning the duration to sleep.

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.

Install

go get github.com/azr/backoff