Registry / utility / cenkalti-backoff

cenkalti-backoff

JSON →
library2.2.1+incompatiblegogounverified

Package backoff implements backoff algorithms for retrying operations.

go get github.com/cenkalti/backoff
INSTALL
IMPORT
SIG · CENKALTI-BACKOFF
C
cenkalti-backoff
utilitygov2.2.1+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

backoff
github.com/cenkalti/backoff

Create an exponential backoff and get the next interval

package main import ( "fmt" "time" "github.com/cenkalti/backoff" ) func main() { b := backoff.NewExponentialBackOff() next := b.NextBackOff() fmt.Println(next) }
Debug
Known issues
breakingVersion 2.x has breaking API changes from v1; the import path changed.
fix
Use github.com/cenkalti/backoff/v4 for latest stable API.
affects: >=2.0.0
Upgrade
Version history
2.2.1+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
Amazon
3
Resources
cenkalti-backoff — go get cenkalti-backoff · libregistry