utils

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

func Retry(maxAttempts int, initialDelay time.Duration, fn func() error) error

Retry executes a function with exponential backoff retry

func RetryWithContext

func RetryWithContext(maxAttempts int, initialDelay time.Duration, fn func() error, shouldRetry func(error) bool) error

RetryWithContext executes a function with retry and context support

Types

This section is empty.

Jump to

Keyboard shortcuts

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