Documentation
¶
Overview ¶
Retry support.
Index ¶
- func Call(retryCount int, f func() error, doRetryFuncs ...func(err error) bool) error
- func CallWithBackoff(backoff []time.Duration, f func() error) error
- func GetOne[T any](retryCount int, f func() (T, error), doRetryFuncs ...func(err error) bool) (T, error)
- func GetOneCond[T any](retryCount int, f func() (T, error), doRetryFunc func(t T, err error) bool) (T, error)
- func GetOneWithBackoff[T any](backoff []time.Duration, f func() (T, error)) (T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallWithBackoff ¶ added in v0.3.1
func GetOneCond ¶ added in v0.2.10
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.