ExWaiter.RateLimiting.Limiter (ex_waiter v1.3.1) View Source

Link to this section Summary

Link to this section Types

Specs

t() :: %ExWaiter.RateLimiting.Limiter{
  burst_limit: pos_integer(),
  checked_at: timestamp_in_ms(),
  cost: pos_integer(),
  created_at: timestamp_in_ms() | nil,
  interval: pos_integer(),
  ms_until_next_refill: non_neg_integer(),
  next_refill_at: timestamp_in_ms(),
  paid_tokens: non_neg_integer(),
  previous_tokens: non_neg_integer() | nil,
  previous_updated_at: timestamp_in_ms() | nil,
  refill_rate: pos_integer(),
  refilled_tokens: non_neg_integer(),
  tokens_after_paid: non_neg_integer(),
  tokens_after_refill: non_neg_integer(),
  updated_at: timestamp_in_ms()
}

Specs

timestamp_in_ms() :: pos_integer()