GenRetry.State
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.
:function
and:opts
are the invocation arguments supplied by the user.:tries
is the total number of attempts made before sending this message.:retry_at
is either the timestamp of the last attempt, or 0 (ifopts[:retries] == 0
).
Summary
Types
t :: %GenRetry.State{function: GenRetry.retryable_fun, opts: GenRetry.Options.t, retry_at: non_neg_integer, tries: non_neg_integer}