Reads up to length bytes into buffer starting at offset.
the number of bytes read, or -1 if the stream has reached end-of-file.
-1
if reading from the channel fails.
if the coroutine is cancelled.