tryConsume

abstract suspend fun tryConsume(tokens: Int = 1): RateLimiter.State

Tries to consume the tokens amount of tokens and returns state of the rate limiter.