# Functions
BackoffUntil loops until stop channel is closed, run f every duration given by BackoffManager.
ExponentialBackoff repeats a condition check with exponential backoff.
ExponentialBackoffWithContext works with a request context and a Backoff.
Forever calls f every period for ever.
Jitter returns a time.Duration between duration and duration + maxFactor * duration.
JitterUntil loops until stop channel is closed, running f every period.
JitterUntilWithContext loops until context is done, running f every period.
NewExponentialBackoffManager returns a manager for managing exponential backoff.
NewJitteredBackoffManager returns a BackoffManager that backoffs with given duration plus given jitter.
NonSlidingUntil loops until stop channel is closed, running f every period.
NonSlidingUntilWithContext loops until context is done, running f every period.
Poll tries a condition func until it returns true, an error, or the timeout is reached.
PollImmediate tries a condition func until it returns true, an error, or the timeout is reached.
PollImmediateInfinite tries a condition func until it returns true or an error
PollImmediateInfinite runs the 'condition' before waiting for the interval.
PollImmediateUntil tries a condition func until it returns true, an error or stopCh is closed.
PollInfinite tries a condition func until it returns true or an error
PollInfinite always waits the interval before the run of 'condition'.
PollUntil tries a condition func until it returns true, an error or stopCh is closed.
Until loops until stop channel is closed, running f every period.
UntilWithContext loops until context is done, running f every period.
WaitFor continually checks 'fn' as driven by 'wait'.
# Variables
ErrWaitTimeout is returned when the condition exited without success.
For any test of the style:
..
NeverStop may be passed to Until to make it never stop.
# Interfaces
BackoffManager manages backoff with a particular scheme based on its underlying implementation.
# Type aliases
ConditionFunc returns true if the condition is satisfied, or an error if the loop should be aborted.
WaitFunc creates a channel that receives an item every time a test should be executed and is closed when the last test should be invoked.