2 ms·
Did kotlin ever add an equivalent of parallel streams?
by jbellis 3y ago
Did kotlin ever add an equivalent of parallel streams?
- jillesvangurp 3y agoYes, via co-routines and flows. And with some convenient extension functions you can easily deal with Java APIs that take or return streams. The structured concurrency proposal in JDK 21 takes some steps in the same direction. That's basically the higher level stuff that will make Loom more usable. In general the theme of that release seems to cherry pick a lot of stuff that Kotlin and Scala have been supporting for some time. That's a good thing. Java developers have been missing out on a lot of good stuff. There's quite a bit more of that of course where this came from.