retry

package
v0.0.0-...-7add6ca Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBackoff

func WithBackoff(ctx context.Context, maxRetries int, fn func() error) error

WithBackoff retries fn up to maxRetries times with exponential backoff + jitter. Base delay is 1 second, max delay is 30 seconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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