isEmpty

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 // true
channel.send(10)
channel.isEmpty // false
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.135.225