File tree 1 file changed +4
-2
lines changed
common/kotlinx-coroutines-core-common/src
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,10 @@ import kotlin.jvm.*
29
29
*
30
30
* A [cancelled][isCancelled] continuation implies that it is [completed][isCompleted].
31
31
*
32
- * Invocation of [resume] or [resumeWithException] in _resumed_ state produces [IllegalStateException]
33
- * but is ignored in _cancelled_ state.
32
+ * Invocation of [resume] or [resumeWithException] in _resumed_ state produces [IllegalStateException].
33
+ * Invocation of [resume] in _cancelled_ state is ignored (it is a trivial race between resume from the continuation owner and
34
+ * outer job cancellation and cancellation wins).
35
+ * Invocation of [resumeWithException] in _cancelled_ state triggers exception handling of passed exception.
34
36
*
35
37
* ```
36
38
* +-----------+ resume +---------+
You can’t perform that action at this time.
0 commit comments