exhausted

Suspends the channel until it is exhausted or gets closed. If the read buffer is empty, it suspends until there are bytes available in the channel. Once the channel is exhausted or closed, this function returns.

Return

true if the channel is exhausted, false if EOF is reached or an error occurred.