attempt v0.2.0 Attempt.Retry.Backoff behaviour

Defines a behaviour to implement retry backoff strategies.

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

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