Documentation
¶
Index ¶
- func Do(fn func() error, opts Options) error
- func DoContext(ctx context.Context, fn func() error, opts Options) error
- func UntilSuccess(ctx context.Context, fn func() error, interval time.Duration) error
- func WithTimeout(fn func() error, timeout time.Duration, interval time.Duration) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UntilSuccess ¶
UntilSuccess retries until the function succeeds or context is cancelled
Types ¶
Click to show internal directories.
Click to hide internal directories.