Coffrify.Runtime.Retry.Policy behaviour (Coffrify v0.9.0)

View Source

Behaviour every retry policy must implement.

Summary

Types

t()

@type t() :: struct()

Callbacks

next(t, attempt, ctx)

@callback next(t(), attempt :: non_neg_integer(), ctx :: map()) :: %{
  should_retry: boolean(),
  delay_ms: non_neg_integer()
}