nretry

package
v0.3.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNoRetry

func IsNoRetry(err error) bool

func NoRetry

func NoRetry(err error) *errNoRetry

func OnErrorRetry

func OnErrorRetry(f func() error, maxTimes int, interval time.Duration) error

func Retry

func Retry(maxRetries int, fn func() error, stepDuration ...time.Duration) error

func RetryBy

func RetryBy(maxRetries int, fn func() error, stepDuration func(int) time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL