https://kotlinlang.org logo
p

poohbar

10/16/2017, 7:36 PM
Is there any built-in way in Kotlin to parallelize computation? Simple use case: I have a collection of ten million records which I want to
map
into ten million of objects. I can split the collection into chunks and have all my cores work on each chunk in parallel. I have 64 cores. I know that I could do simply
parallelStream
which uses the Java stream implementation but that one is fatally broken. Does Kotlin offer a better alternative?