July 2018
Intermediate to advanced
266 pages
7h 11m
English
The second validation would be to check whether there is something to receive. This can be done using the isEmpty property:
val channel = Channel<Int>(1)channel.isEmpty // truechannel.send(10)channel.isEmpty // false
Read now
Unlock full access