retry

package
v2.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 3 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 ErrContextCancel = fmt.Errorf("context canceled")
View Source
var ErrMaxAttempts = fmt.Errorf("max attempts exceeded error")

Functions

func Retry

func Retry(ctx context.Context, 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