uli
06/18/2018, 3:42 PMA channel that was closed without a cause throws ClosedSendChannelException on attempts to send or receive. A channel that was closed with non-null cause is called a failed channel. Attempts to send or receive on a failed channel throw the specified cause exception.
Documentation for produce
mentions:
The running coroutine is cancelled when its receive channel is cancelled.
But does not talk about the SendChannel being closed