class Wallhaven::Downloader::RateLimiter

Defined in:

rate-limiter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(count : UInt64, rate : Time::Span) #

[View source]

Instance Method Detail

def should_wait? #

Is there a spot available in the history ?


[View source]
def wait #

Wait until the limiter is free.


[View source]