@@ -429,10 +429,13 @@ internal open class JobSupport constructor(active: Boolean) : Job, ChildJob, Sel
429429 invokeOnCompletion(onCancelling = false , invokeImmediately = true , handler = handler)
430430
431431 @Suppress(" OverridingDeprecatedMember" )
432+ @Deprecated(message = " For binary compatibility" , level = DeprecationLevel .HIDDEN )
432433 public final override fun invokeOnCompletion (handler : CompletionHandler , onCancelling : Boolean ): DisposableHandle =
433434 invokeOnCompletion(onCancelling = onCancelling, invokeImmediately = true , handler = handler)
434435
435436 @Suppress(" OverridingDeprecatedMember" )
437+ @Deprecated(message = " Use with named `onCancellation` and `handler` parameters" , level = DeprecationLevel .WARNING ,
438+ replaceWith = ReplaceWith (" this.invokeOnCompletion(onCancellation = onCancelling_, handler = handler)" ))
436439 public final override fun invokeOnCompletion (onCancelling_ : Boolean , handler : CompletionHandler ): DisposableHandle =
437440 invokeOnCompletion(onCancelling = onCancelling_, invokeImmediately = true , handler = handler)
438441
@@ -878,6 +881,7 @@ internal open class JobSupport constructor(active: Boolean) : Job, ChildJob, Sel
878881 }
879882
880883 @Suppress(" OverridingDeprecatedMember" )
884+ @Deprecated(message = " Binary compatibility, it is an extension now" , level = DeprecationLevel .HIDDEN )
881885 public final override fun cancelChildren (cause : Throwable ? ) {
882886 this .cancelChildren(cause) // use extension function
883887 }
0 commit comments