I won't be able to get to its channel to report status... is there any better way to do this?
v
Vsevolod Tolstopyatov [JB]
10/18/2018, 3:58 PM
produce
already does what you want:
Uncaught exceptions in this coroutine close the channel with this exception as a cause and the resulting channel becomes failed, so that any attempt to receive from such a channel throws exception.
Vsevolod Tolstopyatov [JB]
10/18/2018, 3:59 PM
and after failure you cannot send “regular” message, because