Skip to content

Commit

Permalink
Fix docs for CancellableContinuation (Kotlin#2112)
Browse files Browse the repository at this point in the history
Basically reverts the documentation update in commit
49b6305 due to the changes in commit
876e9ba
  • Loading branch information
1zaman committed Jul 20, 2020
1 parent e60bcbd commit 716d21c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kotlinx-coroutines-core/common/src/CancellableContinuation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ import kotlin.coroutines.intrinsics.*
*
* A [cancelled][isCancelled] continuation implies that it is [completed][isCompleted].
*
* Invocation of [resume] or [resumeWithException] in _resumed_ state produces an [IllegalStateException].
* Invocation of [resume] in _cancelled_ state is ignored (it is a trivial race between resume from the continuation owner and
* outer job's cancellation, and the cancellation wins).
* Invocation of [resumeWithException] in _cancelled_ state triggers exception handling of the passed exception.
* Invocation of [resume] or [resumeWithException] in _resumed_ state produces an [IllegalStateException],
* but is ignored in _cancelled_ state.
*
* ```
* +-----------+ resume +---------+
Expand Down

0 comments on commit 716d21c

Please sign in to comment.