Not 100% sure what you mean with "data stream", bu...
# kotlin-native
w
Not 100% sure what you mean with "data stream", but there's
ByteReadChannel
and
ByteWriteChannel
in
<http://kotlinx.coroutines.io|kotlinx.coroutines.io>
, which might be what your're looking for.
b
Ah sorry I forgot this term is overloaded now with Rx. What I mean is iOS has NSStream and Java/Kotlin has java.util.stream
I'm looking for an equivalent to that
w
I guess then
ByteReadChannel
is what you're looking for. We're using it for crypto streams, reporting download progress, reading files etc... It's a little bit confusing at the beginning since it's a channel, which works a little bit a different, but once you got it, things are actually easier. Ping me if you need help.
b
Gotcha. Thanks!
@wollnyst do you know of a sample mpp project that uses it?
erg nvm i think i figured this out. i was trying to pull in the dependency without specifying a version number 🤦‍♂️