uber-go / ratelimit

A Go blocking leaky-bucket rate limit implementation
MIT License
4.32k stars 300 forks source link

Can you support the take method of non blocking sleep #99

Closed why444216978 closed 2 years ago

why444216978 commented 2 years ago

Can you support the take method of non blocking sleep, return the interval, so that the service can freely control the actions after current rate limit, such as fast return to 504. If you need, I can contribute pr, look forward to your reply, thanks!