Join Slack
Powered by
For parallel execution, is this the right way `not...
# coroutines
m
Mani
10/20/2019, 9:23 AM
For parallel execution, is this the right way
notes.parallelStream().forEach { println(it) }
p
pg
10/20/2019, 9:59 AM
Im not recommending using parallel stream because it uses ForkJoinPool.commonPool. but there is a hack to use custom thread pool. Check
https://medium.com/@michaelbespalov/parallel-stream-pitfalls-and-how-to-avoid-them-91f11808a16c
5
Views
Open in Slack
Previous
Next