Documentation ¶ Index ¶ func Func(ctx context.Context, subject string, fn func(ctx context.Context) error, ...) (err error) type Option func WithLimit(n int) Option func WithMax(max time.Duration) Option func WithMin(min time.Duration) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Func ¶ func Func(ctx context.Context, subject string, fn func(ctx context.Context) error, opts ...Option) (err error) Types ¶ type Option ¶ type Option func(*options) func WithLimit ¶ func WithLimit(n int) Option func WithMax ¶ func WithMax(max time.Duration) Option func WithMin ¶ func WithMin(min time.Duration) Option Source Files ¶ View all Source files retry.go Click to show internal directories. Click to hide internal directories.