# Functions
NewExponentialBackoff returns a ExponentialBackoff backoff policy.
NewSimpleBackoff creates a SimpleBackoff algorithm with the specified list of fixed intervals in milliseconds.
Retry the function f until it does not return error or BackOff stops.
RetryNotify calls notify function with the error and wait duration for each failed attempt before sleep.
# Constants
Stop is used as a signal to indicate that no more retries should be made.
# Structs
ExponentialBackoff implements the simple exponential backoff described by Douglas Thain at http://dthain.blogspot.de/2009/02/exponential-backoff-in-distributed.html.
SimpleBackoff takes a list of fixed values for backoff intervals.
# Interfaces
Backoff is an interface for different types of backoff algorithms.