awaitContent

open suspend override fun awaitContent(min: Int): Boolean

Suspend the channel until it has min bytes or gets closed. Throws exception if the channel was closed with an error. If there are bytes available in the channel, this function returns immediately.

Return

return false eof is reached, otherwise true.