# Functions
Cancel configures a backoff policy to stop if the given context is done.
ConstantBackOff returns a backoff policy that always returns the same backoff delay.
ExponentialBackOff returns a backoff policy that increases the backoff period for each retry attempt using a function that grows exponentially.
Jitter configures a backoff policy to randomly modify the duration by the given factor.
MaxInterval configures a backoff policy to not return longer intervals when NextBackOff() is called.
MaxRetries configures a backoff policy to return Stop if NextBackOff() has been called too many times.
NewBackOff wraps a backoff policy into a modifiable BackOff.
Permanent wraps the given err in a permanent error signaling that the operation should not be retried.
Retry calls the function f until it does not return error or the backoff policy stops.
Timeout configures a backoff policy to stop when the current time passes the time given with timeout.
ZeroBackOff returns a fixed backoff policy whose backoff time is always zero, meaning that the operation is retried immediately without waiting, indefinitely.
# Constants
Stop indicates that no more retries should be made for use in NextBackOff().