ktor-io / io.ktor.utils.io / discard

discard

suspend fun ByteReadChannel.discard(): Long

Discards all bytes in the channel and suspends until end of stream.