@@ -267,8 +267,9 @@ public actual interface Job : CoroutineContext.Element {
267
267
@Deprecated(message = " For binary compatibility" , level = DeprecationLevel .HIDDEN )
268
268
public fun invokeOnCompletion (handler : CompletionHandler , onCancelling : Boolean ): DisposableHandle
269
269
270
- @Deprecated(message = " For binary compatibility" , level = DeprecationLevel .HIDDEN )
271
- public fun invokeOnCompletion (onCancelling : Boolean = false, handler : CompletionHandler ): DisposableHandle
270
+ @Deprecated(message = " Use with named `onCancelling` and `handler` parameters" , level = DeprecationLevel .WARNING ,
271
+ replaceWith = ReplaceWith (" this.invokeOnCompletion(onCancelling = onCancelling_, handler = handler)" ))
272
+ public fun invokeOnCompletion (onCancelling_ : Boolean = false, handler : CompletionHandler ): DisposableHandle
272
273
273
274
/* *
274
275
* Registers handler that is **synchronously** invoked once on completion of this job.
@@ -843,8 +844,8 @@ public open class JobSupport(active: Boolean) : Job, SelectClause0, SelectClause
843
844
invokeOnCompletion(onCancelling = onCancelling, invokeImmediately = true , handler = handler)
844
845
845
846
@Suppress(" OverridingDeprecatedMember" )
846
- public final override fun invokeOnCompletion (onCancelling : Boolean , handler : CompletionHandler ): DisposableHandle =
847
- invokeOnCompletion(onCancelling = onCancelling , invokeImmediately = true , handler = handler)
847
+ public final override fun invokeOnCompletion (onCancelling_ : Boolean , handler : CompletionHandler ): DisposableHandle =
848
+ invokeOnCompletion(onCancelling = onCancelling_ , invokeImmediately = true , handler = handler)
848
849
849
850
public override fun invokeOnCompletion (
850
851
onCancelling : Boolean ,
0 commit comments