ktor-io / io.ktor.utils.io / ByteReadChannel / readSession

readSession

abstract fun readSession(consumer: ReadSession.() -> Unit): Unit
Deprecated: Use read { } instead.

Starts non-suspendable read session. After channel preparation consumer lambda will be invoked immediately event if there are no bytes available for read yet.