Skip to content

Commit 7463f87

Browse files
qwwdfsadrecheej
authored andcommitted
Remove parent.start() from CancellableContinuationImpl.kt (Kotlin#2036)
It seems to be the legacy from times when CC was a Job, in order to observe behaviour change, a specific example should be accurately made
1 parent 88234c6 commit 7463f87

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kotlinx-coroutines-core/common/src/CancellableContinuationImpl.kt

-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ internal open class CancellableContinuationImpl<in T>(
114114
if (checkCompleted()) return
115115
if (parentHandle !== null) return // fast path 2 -- was already initialized
116116
val parent = delegate.context[Job] ?: return // fast path 3 -- don't do anything without parent
117-
parent.start() // make sure the parent is started
118117
val handle = parent.invokeOnCompletion(
119118
onCancelling = true,
120119
handler = ChildContinuation(parent, this).asHandler

0 commit comments

Comments
 (0)