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

backoff

package
v1.19.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jitter

type Jitter struct {
	// contains filtered or unexported fields
}

Jitter is decorrelated exponential jitter (next = uniform(base, min(cap, prev*3))): under overload, concurrent retries spread out instead of re-colliding on a fixed interval.

func NewJitter

func NewJitter(base, cap time.Duration) *Jitter

func (*Jitter) NextBackOff

func (j *Jitter) NextBackOff() time.Duration

func (*Jitter) Reset

func (j *Jitter) Reset()

Jump to

Keyboard shortcuts

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