Stream in Kotlin


#1

Is there anything in Kotlin equivalent or near to Stream in Dart?


#2

There is no one-to-one correspondence but I think coroutines comes close to what you’re looking for (soon be final with Kotlin 1.3). However I can only report good things from using Reactor (with Kotlin and Java). Both worlds could be combined by the way.


#3

See https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-channel/index.html