Riverside.Session.TransmissionLimitter (riverside v2.2.1)

Link to this section Summary

Link to this section Types

Specs

t() :: %Riverside.Session.TransmissionLimitter{
  count: non_neg_integer(),
  started_at: non_neg_integer()
}

Link to this section Functions

Link to this function

countup(limitter, duration, capacity)

Specs

countup(t(), non_neg_integer(), non_neg_integer()) ::
  {:ok, t()} | {:error, :too_many_messages}

Specs

new() :: t()