If channel.isClosedForSend is true, offer() will throw an exception of the type ClosedSendChannelException, as the following for example:
val channel = Channel<Int>(1)
channel.close()
channel.offer(10)
This will crash, indicating that the channel was closed: