Versions in this module Expand all Collapse all v1 v1.1.9 Oct 1, 2018 Changes in this version + func WithMaxAttempts(ctx context.Context, opts Options, n int, fn func() error) error + type Options struct + Closer <-chan struct{} + InitialBackoff time.Duration + MaxBackoff time.Duration + MaxRetries int + Multiplier float64 + RandomizationFactor float64 + type Retry struct + func Start(opts Options) Retry + func StartWithCtx(ctx context.Context, opts Options) Retry + func (r *Retry) Next() bool + func (r *Retry) NextCh() <-chan time.Time + func (r *Retry) Reset() Incompatible versions in this module v19.2.12+incompatible Jan 12, 2021