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

Possible to limit the number of concurrent iterations? #17

Open
QAnders opened this issue Nov 12, 2021 · 1 comment
Open

Possible to limit the number of concurrent iterations? #17

QAnders opened this issue Nov 12, 2021 · 1 comment

Comments

@QAnders
Copy link

QAnders commented Nov 12, 2021

Thanks for the package! I love the simplicity of the useage!

We've been using p-map as well in some projects but due to the "structure" of it it is sometimes much easier to use your module but in p-map there is a parameter to limit the number of concurrent "threads", {concurrency: 2}

Is the same possible using your module?

@toniov
Copy link
Owner

toniov commented Jan 20, 2022

Hello!

It's not possible right now, I created this module so the methods have the same functionality as the vanilla Javascript Array iteration methods. So you are not going to find any extra option like {concurrency: 2}.

But I think that it could be a good addition for a v2 of this module, will take it into account for future releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants