Registry / utility / cloudflare-backoff

cloudflare-backoff

JSON →
library0.0.0-20161212185259-647f3cdfc87agogounverified

An implementation of exponential backoff with jitter for retry strategies.

go get github.com/cloudflare/backoff
INSTALL
IMPORT
SIG · CLOUDFLARE-BACKOFF
C
cloudflare-backoff
utilitygov0.0.0-20161212185259-647f3cdfc87a
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/cloudflare/backoff

Creates a backoff instance and prints durations.

package main import ( "fmt" "time" "github.com/cloudflare/backoff" ) func main() { b := backoff.New(100*time.Millisecond, 10*time.Second) for i := 0; i < 5; i++ { fmt.Println(b.Duration()) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20161212185259-647f3cdfc87alatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
cloudflare-backoff — go get cloudflare-backoff · libregistry