Stream in Kotlin

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

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.

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

1 Like