tree: 7b4f88bebd80044353d1ced771f4656372d2297f [path history] [tgz]
  1. .gitignore
  2. .travis.yml
  5. backoff.go
  6. context.go
  7. exponential.go
  8. go.mod
  9. retry.go
  10. ticker.go
  11. tries.go

Exponential Backoff GoDoc Build Status Coverage Status

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 Please note the version part at the end. does not support modules yet, so you can use to view the documentation.


  • I would like to keep this library as small as possible.
  • Please don't send a PR without opening an issue and discussing it first.
  • If proposed change is not a common use case, I will probably not accept it.