Umputun b1dc239277 switch logging to lgr 5 năm trước cách đây
..
.gitignore 3be483cb7a working but primitive 5 năm trước cách đây
.travis.yml 3be483cb7a working but primitive 5 năm trước cách đây
LICENSE 3be483cb7a working but primitive 5 năm trước cách đây
README.md 3be483cb7a working but primitive 5 năm trước cách đây
backoff.go 3be483cb7a working but primitive 5 năm trước cách đây
backoff_test.go b1dc239277 switch logging to lgr 5 năm trước cách đây
example_test.go b1dc239277 switch logging to lgr 5 năm trước cách đây
exponential.go 3be483cb7a working but primitive 5 năm trước cách đây
exponential_test.go b1dc239277 switch logging to lgr 5 năm trước cách đây
linear.go 3be483cb7a working but primitive 5 năm trước cách đây
linear_test.go b1dc239277 switch logging to lgr 5 năm trước cách đây

README.md

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