toOutputStream
fun ByteWriteChannel.toOutputStream(
parent: Job? = null
): OutputStream
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