ylemoigne10/09/2019, 8:33 AM
is called ?
In 'uncaughtExceptionHandler' ...
Evan R.10/09/2019, 12:44 PM
Attempts to send or receive on a failed channel throw the specified cause exception.It appears that your
block will just move on to the next iteration after the
and attempt to send, re-throwing the exception you closed the channel with. Because there’s no try/catch in the producer it’s being passed up to the CEH
in your if statement in the producer will fix the issue
ylemoigne10/09/2019, 12:59 PM
which I understood as
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.
in produce block is equivalent to calling
but the behavior are different
Evan R.10/09/2019, 1:47 PM
ylemoigne10/09/2019, 2:12 PM