readRemaining

Caution Read the entire contents of the channel into sink. This function will suspend until the channel is exhausted and no bytes remain OR the channel cancelled

Parameters

sink

the buffer that data read from the channel will be appended to