throat
throat copied to clipboard
Throttle a collection of promise returning functions
## Version **2.5.3** of [typescript](https://github.com/Microsoft/TypeScript) just got published. Branch Build failing 🚨 Dependency typescript Current Version 2.5.2 Type devDependency This version is **covered** by your **current version range** and after...
Can you add more examples? The featured examples are not actually working examples and I don't know how to implement them. I suggest something using setTimeout and console.log so you...
```ts // Argument of type 'PromiseConstructor' is not assignable to parameter of type 'number'. const throat = require('throat')(Promise); ``` cc/ @blakeembrey as `typings/core` is using this.
## Version **2.1.4** of [testit](https://github.com/ForbesLindesay/testit) just got published. Branch Build failing 🚨 Dependency testit Current Version 2.1.3 Type devDependency This version is **covered** by your **current version range** and after...
not sure how this would work API-wise, but the idea is to return a promise somewhere that resolves then there is no longer any promises in the queue. ``` js...
Hi, Would you be open to a PR implementing the ability to throttle multiple functions with the same throat instance. Something like ``` myLimiter = throat(2); lib.method1 = myLimiter.wrap(lib.method1) lib.method2...