retry

package
v8.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

func Retry(ctx context.Context, frequency time.Duration, f func() error) error

Retry retries a specific function with the given frequency. A context with timeout or deadline can be passed to set a timeout. The passed function will be retried until it either returns no error, or a timeout happens. An error is only returned by this function if a timeout happened.

Types

This section is empty.

Jump to

Keyboard shortcuts

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