-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p-* version for promise-queue(max-concurrent=1, max-lenght=1) #23
Comments
It could potentially receive an option to discard overflowing tasks instead of queuing them up.
Regardless of the outcome here, I think it would be useful to add some ways to control the max count there. And not mentioned https://github.com/sindresorhus/p-throttle could potentially receive a |
All your ideas sound nice. They may (and this issue's one can) accept args, but it is not clear the real run sequence is |
…ttleRate` concept art Fixes sindresorhus/promise-fun#23 Signed-off-by: Richie Bendall <[email protected]>
It's useful for the situation like "queue some processing like building up to 1, and do not run at the same time".
naming candidates
I didn't came up with good name.
implementation with promise-queue
implementation from scratch
NOTE: this is fully written by me and publishing under public domain.
usage example
hi
is only shown 2 times.vs others
p-limit
: this will run all queued promises.p-debounce
: this will run concurrentlyp-queue
: no option to limit max lengthpromise-queue
: easy for the specific caseThe text was updated successfully, but these errors were encountered: