Backoff for Go
Retry a recovering Go operation using a configurable wait strategy.
cenkalti · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add github.com/cenkalti/backoff/v4 at v4.3.0. Run a sample operation that fails once, then recovers.
What we tested
v4.3.0. Run a sample operation that fails once, then recovers. Recorded one failed attempt followed by a successful retry.