Package kotlinx.coroutines.experimental.io.jvm.javaio
Extensions for External Classes
Functions
suspend fun ByteReadChannel.copyTo( Copies up to limit bytes from this byte channel to out stream suspending on read channel and blocking on output |
|
fun ByteReadChannel.toInputStream( Create blocking java.io.InputStream for this channel that does block every time the channel suspends at read Similar to do reading in runBlocking however you can pass it to regular blocking API |
|
fun ByteWriteChannel.toOutputStream( Create blocking java.io.OutputStream for this channel that does block every time the channel suspends at write Similar to do reading in runBlocking however you can pass it to regular blocking API |