retry

package
v2.3.113 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDelay = 2 * time.Second
View Source
var DefaultMaxDelay = 5 * time.Minute
View Source
var ErrMaxAttempts = fmt.Errorf("max attempts exceeded error")

Functions

func Retry

func Retry(fn func() error, needRetry func(error) bool, delay time.Duration, maxDelay 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