@@ -558,7 +558,7 @@ public open class JobSupport constructor(active: Boolean) : Job, ChildJob, Paren
558
558
559
559
private suspend fun joinSuspend () = suspendCancellableCoroutine<Unit > { cont ->
560
560
// We have to invoke join() handler only on cancellation, on completion we will be resumed regularly without handlers
561
- cont.disposeOnCancellation(invokeOnCompletion(handler = ResumeOnCompletion (cont).asHandler ))
561
+ cont.disposeOnCancellation(invokeOnCompletion(handler = ResumeOnCompletion (cont).asHandler1 ))
562
562
}
563
563
564
564
@Suppress(" UNCHECKED_CAST" )
@@ -574,7 +574,7 @@ public open class JobSupport constructor(active: Boolean) : Job, ChildJob, Paren
574
574
select.selectInRegistrationPhase(Unit )
575
575
return
576
576
}
577
- val disposableHandle = invokeOnCompletion(SelectOnJoinCompletionHandler (select).asHandler )
577
+ val disposableHandle = invokeOnCompletion(SelectOnJoinCompletionHandler (select).asHandler1 )
578
578
select.disposeOnCompletion(disposableHandle)
579
579
}
580
580
@@ -921,7 +921,7 @@ public open class JobSupport constructor(active: Boolean) : Job, ChildJob, Paren
921
921
private tailrec fun tryWaitForChild (state : Finishing , child : ChildHandleNode , proposedUpdate : Any? ): Boolean {
922
922
val handle = child.childJob.invokeOnCompletion(
923
923
invokeImmediately = false ,
924
- handler = ChildCompletion (this , state, child, proposedUpdate).asHandler
924
+ handler = ChildCompletion (this , state, child, proposedUpdate).asHandler1
925
925
)
926
926
if (handle != = NonDisposableHandle ) return true // child is not complete and we've started waiting for it
927
927
val nextChild = child.nextChild() ? : return false
@@ -971,7 +971,7 @@ public open class JobSupport constructor(active: Boolean) : Job, ChildJob, Paren
971
971
* If child is attached when the job is already being cancelled, such child will receive immediate notification on
972
972
* cancellation, but parent *will* wait for that child before completion and will handle its exception.
973
973
*/
974
- return invokeOnCompletion(onCancelling = true , handler = ChildHandleNode (child).asHandler ) as ChildHandle
974
+ return invokeOnCompletion(onCancelling = true , handler = ChildHandleNode (child).asHandler1 ) as ChildHandle
975
975
}
976
976
977
977
/* *
@@ -1234,7 +1234,7 @@ public open class JobSupport constructor(active: Boolean) : Job, ChildJob, Paren
1234
1234
val cont = AwaitContinuation (uCont.intercepted(), this )
1235
1235
// we are mimicking suspendCancellableCoroutine here and call initCancellability, too.
1236
1236
cont.initCancellability()
1237
- cont.disposeOnCancellation(invokeOnCompletion(ResumeAwaitOnCompletion (cont).asHandler ))
1237
+ cont.disposeOnCancellation(invokeOnCompletion(ResumeAwaitOnCompletion (cont).asHandler1 ))
1238
1238
cont.getResult()
1239
1239
}
1240
1240
@@ -1256,7 +1256,7 @@ public open class JobSupport constructor(active: Boolean) : Job, ChildJob, Paren
1256
1256
}
1257
1257
if (startInternal(state) >= 0 ) break // break unless needs to retry
1258
1258
}
1259
- val disposableHandle = invokeOnCompletion(SelectOnAwaitCompletionHandler (select).asHandler )
1259
+ val disposableHandle = invokeOnCompletion(SelectOnAwaitCompletionHandler (select).asHandler1 )
1260
1260
select.disposeOnCompletion(disposableHandle)
1261
1261
}
1262
1262
0 commit comments