https://kotlinlang.org logo
#coroutines
Title
# coroutines
o

octylFractal

01/16/2019, 9:21 PM
I'm trying to emulate `PipedInputStream`/`PipedOutputStream` with coroutines, does https://github.com/Kotlin/kotlinx-io provide anything like that? currently I have a
ReceiveChannel<ByteReadPacket>
but no way to turn that into an
InputStream
for a Java API. I don't care if the
InputStream
blocks instead of suspending, but I'd like keep it in coroutines until I hit Java
I found
ByteChannel
in the CIO library, which looks like it works for me.
6 Views