Function RateLimiter.check

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

Prototype

bool check(
  Route route,
  core.time.Duration timeout
);