Versions in this module Expand all Collapse all v0 v0.0.1 Apr 8, 2025 Changes in this version + const ErrTimeout + func For(f func() (bool, error), options ...Option) error + type Logger func(fmt string, args ...any) + type O struct + Backoff float64 + Ctx context.Context + Description string + ExitOnError bool + Logger Logger + MaxInterval time.Duration + Reporter Reporter + Reports int + StartInterval time.Duration + TimeLimit time.Duration + type Option func(*O) + func ExitOnError(exit bool) Option + func WithBackoff(f float64) Option + func WithContext(ctx context.Context) Option + func WithDescription(s string) Option + func WithInterval(d time.Duration) Option + func WithLimit(d time.Duration) Option + func WithLogger(f Logger) Option + func WithMaxInterval(d time.Duration) Option + func WithMinInterval(d time.Duration) Option + func WithReporter(f Reporter) Option + func WithReports(n int) Option + type Reporter func(opts O, startTime time.Time)