throttled-queue
throttled-queue copied to clipboard
Throttles arbitrary code to execute a maximum number of times per interval. Best for making throttled API requests.
Hi, first of all, thanks for this very handy library! I have a case where an estimated (because poorly documented) API limit has to be used, in my case around...
**Describe the bug** The library does not through an error if provided with a string in place of number, as expected for `maxRequestsPerInterval` field **To Reproduce** Steps to reproduce the...
If you reach the throttle threshold, especially in the case of a large interval, it becomes necessary to timeout requests so that you can handle them otherwise. In my case...
**Describe the bug** With the [TSConfig `module`](https://www.typescriptlang.org/tsconfig/#module) set to `Node16` or `NodeNext`, trying to call the package's default-`import`ed function gives: ```plaintext This expression is not callable. Type 'typeof import("file:///node_modules/throttled-queue/dist/throttledQueue")' has...