ExWaiter.Polling.Poller (ex_waiter v0.7.0) View Source

Link to this section Summary

Link to this section Types

Specs

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

Specs

num_attempts() :: integer() | :infinity

Specs

on_complete() :: (t() -> any())

Specs

polling_fn() :: (() -> polling_result()) | (t() -> polling_result())

Specs

polling_result() :: :ok | :error | {:ok, any()} | {:error, any()}

Specs

t() :: %ExWaiter.Polling.Poller{
  attempt_num: integer(),
  attempts: [ExWaiter.Polling.Attempt.t()],
  delay: delay(),
  num_attempts: num_attempts(),
  on_complete: on_complete(),
  polling_fn: polling_fn(),
  total_delay: integer(),
  value: any()
}