proxy.golang.org : github.com/sethvargo/go-retry : v0.2.4
Package retry provides helpers for retrying. This package defines flexible interfaces for retrying Go functions that may be flakey or eventually consistent. It abstracts the "backoff" (how long to wait between tries) and "retry" (execute the function again) mechanisms for maximum flexibility. Furthermore, everything is an interface, so you can define your own implementations. The package is modeled after Go's built-in HTTP package, making it easy to customize the built-in backoff with your own custom logic. Additionally, callers specify which errors are retryable by wrapping them. This is helpful with complex operations where only certain results should retry.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/sethvargo/[email protected]
Published:
Indexed:
- retract v0.2.0