failsafe-lib / failsafe

Fault tolerance and resilience patterns for the JVM
https://failsafe.dev
Apache License 2.0
4.17k stars 296 forks source link

Add non-blocking async waiting for rate limiters #318

Closed jhalterman closed 2 years ago

jhalterman commented 2 years ago

Presently, waiting on a rate limiter permit involves blocking a thread, even for async executions. Async executions should be enhanced to not block when waiting on a permit.

jhalterman commented 2 years ago

RateLimiter waiting on async executions is now performed using the configured schduler/ExecutorService/etc.