Versions in this module Expand all Collapse all v4 v4.1.0 Feb 23, 2023 Changes in this version + func Do(fn func(attemptNum uint) error, options ...Option) (limitExceeded bool, lastErr error) + type Option func(*config) + func Attempts(attempts uint) Option + func Delay(delay time.Duration) Option + func StopOnError(e ...error) Option + func WithContext(ctx context.Context) Option