retry

package
v2.3.83 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDelays = []time.Duration{2 * time.Second}
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, maxAttempts int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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