diff options
Diffstat (limited to 'kotlinx-coroutines-core/native/src/flow/internal/FlowExceptions.kt')
-rw-r--r-- | kotlinx-coroutines-core/native/src/flow/internal/FlowExceptions.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kotlinx-coroutines-core/native/src/flow/internal/FlowExceptions.kt b/kotlinx-coroutines-core/native/src/flow/internal/FlowExceptions.kt new file mode 100644 index 00000000..4a291ea2 --- /dev/null +++ b/kotlinx-coroutines-core/native/src/flow/internal/FlowExceptions.kt @@ -0,0 +1,11 @@ +/* + * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + +package kotlinx.coroutines.flow.internal + +import kotlinx.coroutines.* + +internal actual class AbortFlowException : CancellationException("Flow was aborted, no more elements needed") +internal actual class ChildCancelledException : CancellationException("Child of the scoped flow was cancelled") + |