streetsofboston
02/04/2019, 6:10 PMReceiveChannel
that the caller can use to receive data sent from repeated callback.
If something goes wrong, the Channel
implementing the returned ReceiveChannel
is closed with a Throwable
.
How can I catch this throwable?
I can’t find a method on a ReceiveChannel
that takes a callback function to handle a side-effect of closing a channel (with or without an error).evan
02/04/2019, 10:45 PMstreetsofboston
02/04/2019, 10:58 PMReceiveChannel
and I’d like to intercept any closing of the channel, whether it be with an error or just plain closing.radityagumay
02/05/2019, 2:18 PMisActive
?streetsofboston
02/05/2019, 2:41 PMisActive
status). The code needs a callback when the channel is being closed (with or without error).