Documentation ¶
Index ¶
- func Do(tries int, delay time.Duration, fn func() error) (err error)
- func DoExponentialBackoff(tries int, delay time.Duration, multiplier time.Duration, ...) (err error)
- func DoExponentialBackoffWithContextAndResult[T interface{}](parent context.Context, tries int, delay time.Duration, multiplier int, ...) (result T, err error)
- func DoExponentialBackoffWithResult[T interface{}](tries int, delay time.Duration, multiplier int, maxBackoff time.Duration, ...) (result T, err error)
- func DoWithContextTimeout(parent context.Context, tries int, delay time.Duration, timeout time.Duration, ...) (err error)
- func DoWithContextTimeoutWithResult[T interface{}](parent context.Context, tries int, delay time.Duration, timeout time.Duration, ...) (result T, err error)
- func DoWithResult[T interface{}](tries int, delay time.Duration, fn func() (T, error)) (result T, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoExponentialBackoff ¶
func DoExponentialBackoffWithContextAndResult ¶ added in v0.4.0
func DoWithContextTimeout ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.