@@ -429,10 +429,13 @@ internal open class JobSupport constructor(active: Boolean) : Job, ChildJob, Sel
429
429
invokeOnCompletion(onCancelling = false , invokeImmediately = true , handler = handler)
430
430
431
431
@Suppress(" OverridingDeprecatedMember" )
432
+ @Deprecated(message = " For binary compatibility" , level = DeprecationLevel .HIDDEN )
432
433
public final override fun invokeOnCompletion (handler : CompletionHandler , onCancelling : Boolean ): DisposableHandle =
433
434
invokeOnCompletion(onCancelling = onCancelling, invokeImmediately = true , handler = handler)
434
435
435
436
@Suppress(" OverridingDeprecatedMember" )
437
+ @Deprecated(message = " Use with named `onCancellation` and `handler` parameters" , level = DeprecationLevel .WARNING ,
438
+ replaceWith = ReplaceWith (" this.invokeOnCompletion(onCancellation = onCancelling_, handler = handler)" ))
436
439
public final override fun invokeOnCompletion (onCancelling_ : Boolean , handler : CompletionHandler ): DisposableHandle =
437
440
invokeOnCompletion(onCancelling = onCancelling_, invokeImmediately = true , handler = handler)
438
441
@@ -878,6 +881,7 @@ internal open class JobSupport constructor(active: Boolean) : Job, ChildJob, Sel
878
881
}
879
882
880
883
@Suppress(" OverridingDeprecatedMember" )
884
+ @Deprecated(message = " Binary compatibility, it is an extension now" , level = DeprecationLevel .HIDDEN )
881
885
public final override fun cancelChildren (cause : Throwable ? ) {
882
886
this .cancelChildren(cause) // use extension function
883
887
}
0 commit comments