Kotlin Channel.send() suspend indefinitely after closing it
I have the following code:
Kotlin Channels- What’s the difference between channel.cancel() and throwing a CancellationException?
Actually i got very similar output when i use throw cancellationException or channel.cancel(). The working both similar close channel and cancel the receiving side .what the difference can any one explain . so that anyone understand