July 2018
Intermediate to advanced
266 pages
7h 11m
English
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:

Read now
Unlock full access