package
0.5.0
Repository: https://github.com/puppetlabs/leg.git
Documentation: pkg.go.dev

# Functions

Done indicates that work should not be retried.
DoneUnlessMarkedTransient indicates that work should not be retried unless the given error is marked transient.
Repeat indicates that work should be retried.
RepeatUnlessMarkedUser indicates that work should be retried if an error is provided and it is not marked as a user error.
Wait runs a given work function under a context with a particular backoff algorithm if the work needs to be retried.
WaitAsync runs a given work function in a separate Goroutine, but otherwise behaves identically to Wait.
WithBackoffFactory changes the backoff algorithm to the specified one.
WithClock changes the backoff clock to the specified one.

# Variables

DefaultBackoffFactory is a networking-appropriate backoff that the wait functions use by default.

# Structs

WaitOptions allows the behavior of Wait to be customized.

# Interfaces

WaitOption is a setter for one or more wait options.

# Type aliases

WaitOptionFunc allows a function to be used as a wait option.
WorkFunc is a function that performs an arbitrary operation.