vutran1710 / PyrateLimiter

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

add reflected ops to Duration #137

Closed pmeier closed 10 months ago

pmeier commented 10 months ago

Since we already have the comfort of multiplying a Duration by an integer, let's go all the way and allow multiplying an integer by a Duration for maximum comfort.

pmeier commented 10 months ago

https://github.com/vutran1710/PyrateLimiter/actions/runs/6534665316/job/17744254656#step:8:7123 looks like a valid failure