retry

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InitialBackoff is the initial delay between retries
	InitialBackoff = 100 * time.Millisecond
	// MaxBackoff is the maximum delay between retries
	MaxBackoff = 2 * time.Second
)

Variables

This section is empty.

Functions

func RetryWithMaxFailures

func RetryWithMaxFailures(maxFailures int, operation func() error) error

RetryWithMaxFailures executes the given operation with retry logic and exponential backoff

Types

This section is empty.

Jump to

Keyboard shortcuts

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