toChannel
suspend fun <E, C : SendChannel<E>> ReceiveChannel<E>.toChannel(
destination: C
): C
(source)Platform and version requirements: JVM
Send each element of the original channel and appends the results to the given destination.
The operation is terminal. This function consumes all elements of the original ReceiveChannel.