Help us shape the future of Go! Take the 2026 Go Developer Survey

retry

package
v1.18.8 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLinearBackoffInterval = time.Second
	DefaultLinearRetryCount      = 3
)

Variables

This section is empty.

Functions

func Jitter added in v1.18.0

func Jitter(base, jitter time.Duration) time.Duration

Jitter returns a random duration in the range [base-jitter, base+jitter). Returns base if jitter is zero or negative.

Types

This section is empty.

Jump to

Keyboard shortcuts

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