ExWaiter.Polling.Poller.Config (ex_waiter v1.3.1) View Source

Link to this section Summary

Link to this section Types

Specs

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

Specs

max_attempts() ::
  non_neg_integer() | :infinity | (t() -> boolean()) | (() -> boolean())

Specs

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

Specs

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

Specs

t() :: %ExWaiter.Polling.Poller.Config{
  delay: delay(),
  max_attempts: max_attempts(),
  polling_fn: polling_fn(),
  record_history: boolean()
}