retryhelper

package
v0.0.0-...-d5bc497 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultInfinitRetry

func DefaultInfinitRetry(ctx context.Context, retryFunc func() error,
	retryCbk func(retryCount int, delay time.Duration, err error),
) (err error)

DefaultInfinitRetry performs operation default number of times with default delay.

func DefaultRetry

func DefaultRetry(ctx context.Context, retryFunc func() error) (err error)

DefaultRetry performs operation default number of times with default delay.

func Retry

func Retry(
	ctx context.Context, retryFunc func() error, retryCbk func(retryCount int, delay time.Duration, err error),
	maxTry int, delay, maxDelay time.Duration,
) (err error)

Retry performs operation defined number of times with configured delay.

Types

This section is empty.

Jump to

Keyboard shortcuts

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