promise-throttle icon indicating copy to clipboard operation
promise-throttle copied to clipboard

A small library to throttle promises. Useful to avoid rate limiting when using REST APIs.

Results 12 promise-throttle issues
Sort by recently updated
recently updated
newest added

Perhaps I'm missing something, but it seems like your examples use a lot of functionality that is missing from your documentation. For example I don't see anything in the docs...

Using node.js v8.11.1 Simple example to reproduce: ```js const PromiseThrottle = require('promise-throttle'), promiseThrottle = new PromiseThrottle({ promiseImplementation: Promise, requestsPerSecond: 1 }); promiseThrottle.add(() => Promise.resolve(), { signal: { aborted: true }...

Several days ago, I've made a typo while configuring a `PromiseThrottle` on the `requestsPerSeconds` awaited field. Consequently, the object was configured with an `undefined` requestsPerSeconds value and my sequence of...

Hello, I've implemented PromiseThrottle with 1 call per second and with default weight except one call with a weight of 3. So i was expected that this call has been...

* Using revealing module pattern to condense code * Switching to microbundle to generate dist file for multiple ways to consume

I was in need to keep track of the queue length. Would it useful to merge ?

## The devDependency [promise](https://github.com/then/promise) was updated from `8.0.3` to `8.1.0`. 🚨 [View failing branch](https://github.com/JMPerez/promise-throttle/compare/master...JMPerez:greenkeeper%2Fpromise-8.1.0). This version is **covered** by your **current version range** and after updating it in your project...

greenkeeper

I am using `AbortController` to abort my promises. However when aborting, rather than immediate rejection of all pending promises, the library continues to throttle and reject ends up taking more...

needs more info

Bumps [json5](https://github.com/json5/json5) from 2.1.3 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...

dependencies