retry

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

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

func IfErrorIs

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

func Retry

func Retry(attempts int, sleep time.Duration, fn func() 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