toInputStream
fun ByteReadChannel.toInputStream(
parent: Job? = null
): InputStream
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