proxy.golang.org : github.com/segmentio/backoff
Package backoff implements backoff algorithms for retrying operations. Also has a Retry() helper for retrying operations that may fail. This is an example that demonstrates how this package could be used to perform various advanced operations. It executes an HTTP GET request with exponential backoff, while errors are logged and failed responses are closed, as required by net/http package. Note we define a condition function which is used inside the operation to determine whether the operation succeeded or failed.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/segmentio/backoff
License: MIT
Latest release: 13 days ago
Namespace: github.com/segmentio
Last synced: 13 days ago