package
0.0.0-20201105063637-5613f3b8169f
Repository: https://github.com/appscode/go.git
Documentation: pkg.go.dev
# Functions
ExponentialBackoff repeats a condition check with exponential 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.
NonSlidingUntil loops until stop channel is closed, 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.
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.
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.
# 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.