Rate limiting operations for controlling request throughput. Provides methods to execute async functions within rate limit constraints.
IMPORT_PATH: "@daiso-tech/core/rate-limiter/contracts"
"@daiso-tech/core/rate-limiter/contracts"
Resets the rate limiter to its initial state. Clears the request count and allows a fresh quota of requests.
Executes an async function if the rate limit quota is available. The request is blocked if the limit has been reached, throwing an error.
The return type of the async function
The function to execute if rate limit allows
The return value of the function
If the rate limiter has reached its limit
Rate limiting operations for controlling request throughput. Provides methods to execute async functions within rate limit constraints.
IMPORT_PATH:
"@daiso-tech/core/rate-limiter/contracts"