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
Copy file name to clipboardExpand all lines: common/kotlinx-coroutines-core-common/src/main/kotlin/kotlinx/coroutines/experimental/AbstractCoroutine.kt
+5-2
Original file line number
Diff line number
Diff line change
@@ -76,8 +76,11 @@ public abstract class AbstractCoroutine<in T>(
76
76
* This function is invoked once when this coroutine is cancelled or is completed,
77
77
* similarly to [invokeOnCompletion] with `onCancelling` set to `true`.
78
78
*
79
-
* @param cause the cause that was passed to [Job.cancel] function, [JobCancellationException] if it was completed without cause
80
-
* or `null` if coroutine is completing normally.
79
+
* The meaning of [cause] parameter:
80
+
* * Cause is `null` when job has completed normally.
81
+
* * Cause is an instance of [CancellationException] when job was cancelled _normally_.
82
+
* **It should not be treated as an error**. In particular, it should not be reported to error logs.
Copy file name to clipboardExpand all lines: common/kotlinx-coroutines-core-common/src/main/kotlin/kotlinx/coroutines/experimental/CompletedExceptionally.kt
Copy file name to clipboardExpand all lines: common/kotlinx-coroutines-core-common/src/main/kotlin/kotlinx/coroutines/experimental/CompletionHandler.common.kt
Copy file name to clipboardExpand all lines: common/kotlinx-coroutines-core-common/src/main/kotlin/kotlinx/coroutines/experimental/Exceptions.common.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ public expect class JobCancellationException(
0 commit comments