attempt v0.4.0 Attempt.Retry.Backoff behaviour

Defines a behaviour to implement retry backoff strategies.

See https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/

Implemented strategies are:

See the relevant module for more information. The default backoff strategy is Attempt.Retry.Backoff.None.

Link to this section Summary

Callbacks

Returns the number of milliseconds to delay before the next retry

Link to this section Callbacks

Link to this callback delay(arg0)
delay(Retry.Budget.t()) :: {non_neg_integer(), Retry.Budget.t()}

Returns the number of milliseconds to delay before the next retry