godash icon indicating copy to clipboard operation
godash copied to clipboard

Add ParallelMap function

Open aswinkarthik opened this issue 6 years ago • 2 comments

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()

aswinkarthik avatar Oct 12 '19 17:10 aswinkarthik

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

dineshba avatar Oct 12 '19 18:10 dineshba

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

aswinkarthik avatar Oct 13 '19 16:10 aswinkarthik