Skip to content

Commit a197d6d

Browse files
committed
ClosedSendChannelException is a subclass of CancellationException
1 parent de8b9e9 commit a197d6d

File tree

1 file changed

+1
-1
lines changed
  • kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels/Channel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public interface Channel<E> : SendChannel<E>, ReceiveChannel<E> {
211211
* that was closed _normally_. A _failed_ channel rethrows the original [close][SendChannel.close] cause
212212
* exception on send attempts.
213213
*/
214-
public class ClosedSendChannelException(message: String?) : IllegalStateException(message)
214+
public class ClosedSendChannelException(message: String?) : CancellationException(message)
215215

216216
/**
217217
* Indicates attempt to [receive][ReceiveChannel.receive] on [isClosedForReceive][ReceiveChannel.isClosedForReceive]

0 commit comments

Comments
 (0)