package
1.5.1
Repository: https://github.com/unitytech/client-go.git
Documentation: pkg.go.dev

# Functions

ExponentialBackoff repeats a condition check up to steps times, increasing the wait by multipling the previous duration by factor.
Forever is syntactic sugar on top of Until.
Jitter returns a time.Duration between duration and duration + maxFactor * duration, to allow clients to avoid converging on periodic behavior.
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 is identical to Poll, except that it performs the first check immediately, not waiting interval beforehand.
PollInfinite polls forever.
PollUntil is like Poll, but it takes a stop change instead of total duration.
Until loops until stop channel is closed, running f every period.
WaitFor gets a channel from wait(), and then invokes fn once for every value placed on the channel and once more when the channel is closed.

# 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.

# Structs

Backoff is parameters applied to a Backoff function.

# 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.