vutran1710 / PyrateLimiter

⚔️Python Rate-Limiter using Leaky-Bucket Algorithm Family
https://pyratelimiter.readthedocs.io
MIT License
338 stars 36 forks source link

Interrupt/cancel enqueued tasks #34

Closed alkasm closed 1 year ago

alkasm commented 3 years ago

It would be great if there was a way to interrupt and/or cancel the enqueued tasks. One method to accomplish this might be to have a threading.Event object which you can wait(timeout) on, instead of time.sleep(timeout).

vutran1710 commented 3 years ago

Hi, tks for request. I'll see what I can do.

vutran1710 commented 1 year ago

Issue being too old.