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

Add ParallelMap function #6

Open
aswinkarthik opened this issue Oct 12, 2019 · 2 comments
Open

Add ParallelMap function #6

aswinkarthik opened this issue Oct 12, 2019 · 2 comments
Assignees

Comments

@aswinkarthik
Copy link
Contributor

The API and behaviour is same as godash.Map. Same validations apply. Just that the mapperFn has to be executed on all elements in Go routines and the output is collected and returned. godash.ParallelMap is still a blocking function.
Insipired from java streams parallelMap()

@dineshba
Copy link
Member

Is it one go routine per element ? Can we have a way to control the number of routines(as function parameter) ?

@aswinkarthik
Copy link
Contributor Author

Lets go with one go-routine per element and no need for a way to control the parallelism.

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

3 participants