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

I can't seem to use nested limit() function #14

Closed
mledwards opened this issue Aug 13, 2019 · 1 comment
Closed

I can't seem to use nested limit() function #14

mledwards opened this issue Aug 13, 2019 · 1 comment

Comments

@mledwards
Copy link

So I have a Promise.all that's mapping an array to a limit, that's calling a function. In that function I have another Promise.all that I want limited, but it seems to never get into the second limit function call.

Any ideas?

@mledwards
Copy link
Author

Ah, I see my problem. I was limiting to 1 concurrent request. So a nested Promise.all needs at least 2 concurrent requests. Working a treat. Thanks!

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