Registry / utility / retry-v1

retry-v1

JSON →
library1.0.3gogounverified

A Go library for flexible retry loops with support for channel cancellation, mocked time, and composable retry strategies including exponential backoff with jitter.

go get gopkg.in/retry.v1
INSTALL
IMPORT
SIG · RETRY-V1
R
retry-v1
utilitygov1.0.3
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.

retry
gopkg.in/retry.v1

Retry an operation with exponential backoff limited to 30 seconds.

package main import ( "fmt" "gopkg.in/retry.v1" ) func main() { strategy := retry.LimitTime(retry.Exponential{Initial: 100, Max: 10000}, 30*1000) for retry.Start(strategy, nil).Next() { fmt.Println("attempt") } }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
retry-v1 — go get retry-v1 · libregistry