BaseRateLimiter
Bases: ABC
Base rate limiter class.
Inherit this class to implement a rate limiter.
Source code in pulsefire/ratelimiters.py
Functions
acquire
abstractmethod
async
Acquire a wait_for value in seconds.
wait_for | action required |
---|---|
-1 | Proceed then synchronize. |
0 | Proceed then skip synchronize. |
>0 | Wait for value in seconds then acquire again. |