For parallel execution, is this the right way `not...
# coroutines
m
For parallel execution, is this the right way
notes.parallelStream().forEach { println(it) }
p
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