expect fun ByteChannel(autoFlush: Boolean = false): ByteChannel
Creates buffered channel for asynchronous reading and writing of sequences of bytes.
fun ByteChannel(autoFlush: Boolean = false, exceptionMapper: (Throwable?) -> Throwable?): ByteChannel
Creates buffered channel for asynchronous reading and writing of sequences of bytes using close function to close channel.