Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + type Loop struct + func New(options ...Option) *Loop + func (l *Loop) CalculateInterval(loopedTimes uint64) time.Duration + func (l *Loop) Do(f func() (bool, error)) error + type Option func(*Loop) + func WithContext(ctx context.Context) Option + func WithDeclineLimit(t time.Duration) Option + func WithDeclineRatio(n float64) Option + func WithInterval(t time.Duration) Option + func WithMaxTimes(n uint64) Option