retry

package
v0.0.0-...-deb6259 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomRetry

func CustomRetry(attempts int, sleep time.Duration, f func() error) error

CustomRetry retries a function f for attempts time with given duration

Types

type Stop

type Stop struct {
	// contains filtered or unexported fields
}

Stop indicates manually stopping of custom retry

func NewStop

func NewStop(message string) Stop

NewStop function can be used to implement a custom stop message

Jump to

Keyboard shortcuts

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