utils

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 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(attempts int, sleep time.Duration, fn func() error) error

func RetryIf

func RetryIf(attempts int, sleep time.Duration, fn func() error, predicate func(error) bool) (err error)

func RetryIfErrorIs

func RetryIfErrorIs(attempts int, sleep time.Duration, fn func() error, target error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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