gen_retry v1.1.0 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 (if opts[:retries] == 0).

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %GenRetry.State{
  function: GenRetry.retryable_fun(),
  logger: term(),
  opts: GenRetry.Options.t(),
  retry_at: non_neg_integer(),
  tries: non_neg_integer()
}