Registry / utility / lestrrat-go-backoff

lestrrat-go-backoff

JSON →
library1.0.1gogounverified

A Go library implementing backoff algorithms for retrying operations.

go get github.com/lestrrat-go/backoff
INSTALL
IMPORT
SIG · LESTRRAT-GO-BACKOF
L
lestrrat-go-backoff
utilitygov1.0.1
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/lestrrat-go/backoff

Use exponential backoff to retry an operation.

package main import ( "context" "fmt" "github.com/lestrrat-go/backoff" ) func main() { policy := backoff.NewExponential() b, _ := policy.Start(context.Background()) for backoff.Continue(b) { fmt.Println("retrying...") } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
lestrrat-go-backoff — go get lestrrat-go-backoff · libregistry