Skip to content
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

How do I only add items up until the concurrency limit and then wait until a pending promise is fulfilled? #191

Open
WayneEllery opened this issue Jul 19, 2023 · 0 comments

Comments

@WayneEllery
Copy link

WayneEllery commented Jul 19, 2023

How do I only add items up until the concurrency limit and then wait until a pending promise is fulfilled? I couldn't work out how to do this? When I use .onSizeLessThan(1) it will wait when there is same number items as concurrency limit + 1 but I want to stop adding items when it hits the concurrency limit

@WayneEllery WayneEllery changed the title How do I only add items up until the concurreny limit and then wait until a pending promise is fulfilled? How do I only add items up until the concurrency limit and then wait until a pending promise is fulfilled? Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant