package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

ForDuration will retry the given function until it either returns without error, or the given duration has elapsed.
Start returns a new Retry initialized to some default values.
StartWithCtx returns a new Retry initialized to some default values.
WithMaxAttempts is a helper that runs fn N times and collects the last err.

# Structs

Options provides reusable configuration of Retry objects.
Retry implements the public methods necessary to control an exponential- backoff retry loop.