Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultGenerator = MakeFibonacciGenerator(defaultUnit, defaultMax)
DefaultGenerator is fibonacci generator configured for retrying at intervals that backoff using the fibonacci sequence up to a maximum Duration of 125 milliseconds
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator func() Next
Generator creates a channel of Durations that can be used to drive timeout logic for Consumer channels that are not in a receiving state, the func returned resets the sequence
func MakeFibonacciGenerator ¶
MakeFibonacciGenerator creates a fibonacci generator for retrying at intervals that backoff using the fibonacci sequence up to a maximum Duration specified
func MakeFixedGenerator ¶
MakeFixedGenerator creates a fixed generator for retrying at intervals of the specified Duration
Click to show internal directories.
Click to hide internal directories.