Waits until n permits are available and acquires them.
This method blocks the caller thread until enough permits are available.
| permits |
number of permits. |
|
Result.ok(true) when permits are acquired, or Result.error(RateLimiterError.INVALID_ARGUMENT) when permits is not positive or exceeds burst capacity. |