RateLimiter.check

Check whether a request can be made for a bucket. If the bucket is on cooldown, wait until the cooldown resets before returning.

class RateLimiter
bool
check
(
Bucket bucket
,
Duration timeout
)

Meta