control

package
v1.49.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRetries = 5

DefaultRetries is a constant for the maximum number of retries we usually do. However, callers of Retry are free to choose a different number.

Variables

This section is empty.

Functions

func AbortRetry

func AbortRetry(err error) error

AbortRetry aborts any further attempts of retrying an operation.

If err is passed Retry returns the passed error. If nil is passed, Retry returns nil.

func Retry

func Retry(maxTries int, f func() error) error

Retry executes f at most maxTries times.

Types

This section is empty.

Jump to

Keyboard shortcuts

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