ByteChannel

expect fun ByteChannel(autoFlush: Boolean = false): ByteChannel

Deprecated

We're migrating to the new kotlinx-io library. This declaration is deprecated and will be removed in Ktor 4.0.0 If you have any problems with migration, please contact us in https://youtrack.jetbrains.com/issue/KTOR-6030/Migrate-to-new-kotlinx.io-library

Creates buffered channel for asynchronous reading and writing of sequences of bytes.

actual fun ByteChannel(autoFlush: Boolean): ByteChannel

Creates buffered channel for asynchronous reading and writing of sequences of bytes.

fun ByteChannel(autoFlush: Boolean = false, exceptionMapper: (Throwable?) -> Throwable?): <Error class: unknown class>

Creates a buffered channel for asynchronous reading and writing of sequences of bytes using close function to close a channel.


actual fun ByteChannel(autoFlush: Boolean): ByteChannel

Creates a buffered channel for asynchronous reading and writing of sequences of bytes.

actual fun ByteChannel(autoFlush: Boolean): ByteChannel

Creates a buffered channel for asynchronous reading and writing of sequences of bytes.

actual fun ByteChannel(autoFlush: Boolean): ByteChannel

Creates buffered channel for asynchronous reading and writing of sequences of bytes.