toByteReadChannel

Converts a ReadableByteChannel to a ByteReadChannel, enabling asynchronous reading of bytes.

Report a problem

Return

a ByteReadChannel for reading bytes asynchronously from the given ReadableByteChannel.

Parameters

context

the CoroutineContext to execute the read operation. Defaults to Dispatchers.IO.