Ratelix.LeakyBucket (ratelix v0.3.0)
View SourceImplements a Leaky Bucket rate limiter as a GenServer.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type t() :: %Ratelix.LeakyBucket{ capacity: pos_integer(), interval: pos_integer(), length: non_neg_integer(), queue: :queue.queue() }
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.