split
fun ByteReadChannel.split(coroutineScope: CoroutineScope): Pair<ByteReadChannel, ByteReadChannel>
Content copied to clipboard
Split source ByteReadChannel into 2 new one. Cancel of one channel in split(input or both outputs) cancels other channels.