You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix exception types for channels to ensure transparency & reporting
* ReceiveChannel.cancel always closes channel with CancellationException,
so sending or receiving from a cancelled channel produces the
corresponding CancellationException.
* Cancelling produce builder has similar effect, but an more specific
instance of JobCancellationException is created.
* This ensure that produce/consumeEach pair is transparent with respect
to cancellation and can be used to build "identity" transformation
of the flow (the corresponding test is added).
* ClosedSendChannelException is now a subclass of IllegalStateException,
so that trying to send to a channel that was closed normally is
reported as program error and is not eaten (test is added).
Fixes#957Fixes#1128
0 commit comments