retry

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExponentialBackoffInterval

func ExponentialBackoffInterval(baseIntervalSec, maxIntervalSec, attempts uint64) uint64

ExponentialBackoffInterval calculates the backoff interval for a given attempt using exponential growth. baseIntervalSec: initial interval in seconds before the first retry. maxIntervalSec: maximum interval in seconds. attempts: current retry attempt number. Returns the interval in seconds, capped at maxIntervalSec.

Types

This section is empty.

Jump to

Keyboard shortcuts

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