package
0.5.49
Repository: https://github.com/pubgo/funk.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
NewConstant creates a new constant backoff using the value t.
NewExponential creates a new exponential backoff using the starting value of base and doubling on each failure (1, 2, 4, 8, 16, 32, 64...), up to max.
NewFibonacci creates a new Fibonacci backoff using the starting value of base.
NewNoop creates a new noop backoff.
WithCappedDuration sets a maximum on the duration returned from the next backoff.
WithJitter wraps a backoff function and adds the specified jitter.
WithJitterPercent wraps a backoff function and adds the specified jitter percentage.
WithMaxDuration sets a maximum on the total amount of time a backoff should execute.
WithMaxRetries executes the backoff function up until the maximum attempts.

# Constants

No description provided by the author

# Interfaces

Backoff is an interface that backs off.

# Type aliases

BackoffFunc is a backoff expressed as a function.
No description provided by the author