backoff

package
v0.1.5-0...-e9bf353 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package backoff provides the bounded exponential delay with jitter shared by server retry loops so repeated failures do not re-synchronize across processes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delay

func Delay(attempt int, base, max time.Duration) time.Duration

Delay returns an exponentially growing wait for the zero-based attempt count, capped at max, plus up to half the current delay as random jitter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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