Versions in this module Expand all Collapse all v1 v1.1.0 Nov 7, 2026 v1.0.0 Nov 7, 2026 Changes in this version + func Do(ctx context.Context, p Policy, fn func(ctx context.Context) error) error + func Retryable(err error) bool + func Value[T any](ctx context.Context, p Policy, fn func(ctx context.Context) (T, error)) (T, error) + type Policy struct + BaseDelay time.Duration + MaxAttempts int + MaxDelay time.Duration + NoJitter bool + OnRetry func(attempt int, err error, wait time.Duration) + Retryable func(error) bool + func Default() Policy