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

Link to this section Summary

Link to this section Types

Specs

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

Specs

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

Specs

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

Specs

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

Specs

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