RateLimiter(T)
Inherits Reference < Object
A utility class for performing rate limit queries under certain
conditions. See specs/ for example usage.
Constants
VERSION = "0.1.0"
Constructors
new
SourceInstance methods
bucket(name : Symbol, limit : UInt32, time_span : Time::Span, delay : Time::Span = 0.seconds)
Creates a new bucket with name and specified properties.
See Bucket#initialize
rate_limited?(name : Symbol, key : T)
Searches for a bucket with name, and performs a rate limit request
with key