I am facing issue currently where multiple `.send`...
# coroutines
a
I am facing issue currently where multiple
.send
are done on a channel. At some point we close the channel, but we still have some
.send
open. I assumed that
.close
would throw an exception or stops suspending for the ones who tries to
.send
. But this is not the case. So is it best practise with channel to drain them with
.consume
or
.consumeEach
?
z
cancel
will interrupt senders, but
close
effectively just enqueues a “close token”.
a
That is exactly what I was looking for. thanks!