ExWaiter.Waiter (ex_waiter v0.4.0) View Source

Link to this section Summary

Link to this section Types

Specs

checker_fn() :: (() -> checker_result()) | (t() -> checker_result())

Specs

checker_result() :: {:ok, any()} | {:error, any()} | :ok | :error | boolean()

Specs

delay_before() :: (t() -> integer()) | integer()

Specs

num_attempts() :: integer() | :infinite

Specs

returning() :: (t() -> any())

Specs

t() :: %ExWaiter.Waiter{
  attempt_num: integer(),
  attempts: [ExWaiter.Attempt.t()],
  attempts_left: integer(),
  checker_fn: checker_fn(),
  delay_before: delay_before(),
  exception_on_retries_exhausted?: term(),
  fulfilled?: boolean(),
  num_attempts: num_attempts(),
  returning: returning(),
  total_delay: integer(),
  value: any()
}