Comments (1)
At the moment if you pass the signal to a single promise it will cancel that promise. The library doesn't take into account the case in which you are using the same signal for several promises added individually.
I think you can apply the example shown in the README file, where the signal
is passed to the whole set of promises queued.
const promiseThrottle = new PromiseThrottle({
requestsPerSecond: 1,
promiseImplementation: Promise
});
let controller = new AbortController();
let signal = controller.signal;
return promiseThrottle.addAll([my_axios_api, my_axios_api], {signal});
Let me know if that works!
from promise-throttle.
Related Issues (19)
- 1 request per 5 seconds HOT 4
- An in-range update of eslint is breaking the build 🚨 HOT 20
- Error: Cannot find module 'ansi-styles' HOT 2
- another full throttle :) HOT 1
- Hey dude HOT 1
- An in-range update of sinon is breaking the build 🚨 HOT 6
- How to use it HOT 2
- Aborting requests throws a ReferenceError in node.js HOT 1
- An in-range update of eslint is breaking the build 🚨 HOT 19
- An in-range update of sinon is breaking the build 🚨 HOT 7
- .addAll() should return a promise HOT 2
- An in-range update of coveralls is breaking the build 🚨 HOT 7
- Documentation is missing a bunch of functionality? HOT 2
- An in-range update of promise is breaking the build 🚨 HOT 1
- Wrong argument type in TypeScript declaration? HOT 3
- unexpected weight behaviour
- v1.1.2 is not released on npm HOT 1
- Undefined requestsPerSeconds gives an infinite loop
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promise-throttle.