Skip to content

Optional Parameter for PMap to set number of Goroutines(worker)

Compare
Choose a tag to compare
@logic-building logic-building released this 03 Oct 21:39
· 25 commits to master since this release
63b713d

Eg:
PMapInt(squareInt, []int{v1, v2, v3}, Optional{FixedPool: 2, RandomOrder: true})

The default behavior of PMap:
a. number of Goroutines == length of the list.
b. Order is guaranteed