Documentation ¶
Overview ¶
Exponential backoff
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
when an operation is reasonably expected to fail at times and retry attempts should be done, this function should be called after each attempt to get the new duration before the next attempt should be tried.
usual implementations are expected to return different duration for each call, like [0ms, 100ms, 200ms, 400ms, ...]
func ExponentialWithCappedMax ¶
given (100ms, 1s) => [0ms, 100ms, 200ms, 400ms, 800ms, 1s, 1s, 1s, ...]
Click to show internal directories.
Click to hide internal directories.