GenRetry.State (gen_retry v1.4.0)
Used to represent the state of a GenRetry invocation.
This struct is part of the success or failure message to be
optionally sent to another process, specified by opts[:respond_to],
upon completion.
:functionand:optsare the invocation arguments supplied by the user.:triesis the total number of attempts made before sending this message.:retry_atis either the timestamp of the last attempt, or 0 (ifopts[:retries] == 0).
Link to this section Summary
Link to this section Types
Specs
t() :: %GenRetry.State{
function: GenRetry.retryable_fun(),
logger: term(),
opts: GenRetry.Options.t(),
retry_at: non_neg_integer(),
tries: non_neg_integer()
}