debian-forge-composer/vendor/github.com/cenkalti/backoff/v4
2023-07-21 12:05:00 +02:00
..
.gitignore go: update most dependencies to the latest version 2021-09-05 12:50:02 +01:00
backoff.go auth: OpenID/OAUth2 middleware 2021-09-04 02:48:52 +02:00
context.go go: update most dependencies to the latest version 2021-09-05 12:50:02 +01:00
exponential.go go.mod: Update openshift-online/ocm-sdk-go 2022-05-19 22:18:42 +02:00
LICENSE auth: OpenID/OAUth2 middleware 2021-09-04 02:48:52 +02:00
README.md go: update most dependencies to the latest version 2021-09-05 12:50:02 +01:00
retry.go deps: update osbuild/images to 246b718310ea 2023-07-21 12:05:00 +02:00
ticker.go go: update most dependencies to the latest version 2021-09-05 12:50:02 +01:00
timer.go auth: OpenID/OAUth2 middleware 2021-09-04 02:48:52 +02:00
tries.go auth: OpenID/OAUth2 middleware 2021-09-04 02:48:52 +02:00

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.

Usage

Import path is github.com/cenkalti/backoff/v4. Please note the version part at the end.

Use https://pkg.go.dev/github.com/cenkalti/backoff/v4 to view the documentation.

Contributing

  • 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.