@@ -166,13 +166,13 @@ public interface Job : CoroutineContext.Element {
166166 /* *
167167 * @suppress This method implements old version of JVM ABI. Use [cancel].
168168 */
169- @Deprecated(level = DeprecationLevel .HIDDEN , message = " Binary compatibility only " )
169+ @Deprecated(level = DeprecationLevel .HIDDEN , message = " Since 1.2.0, binary compatibility with versions <= 1.1.x " )
170170 public fun cancel () = cancel(null )
171171
172172 /* *
173173 * @suppress This method has bad semantics when cause is not a [CancellationException]. Use [cancel].
174174 */
175- @Deprecated(level = DeprecationLevel .HIDDEN , message = " Binary compatibility only " )
175+ @Deprecated(level = DeprecationLevel .HIDDEN , message = " Since 1.2.0, binary compatibility with versions <= 1.1.x " )
176176 public fun cancel (cause : Throwable ? = null): Boolean
177177
178178 // ------------ parent-child ------------
@@ -358,7 +358,7 @@ public fun Job(parent: Job? = null): CompletableJob = JobImpl(parent)
358358
359359/* * @suppress Binary compatibility only */
360360@Suppress(" FunctionName" )
361- @Deprecated(level = DeprecationLevel .HIDDEN , message = " Binary compatibility" )
361+ @Deprecated(level = DeprecationLevel .HIDDEN , message = " Since 1.2.0, binary compatibility with versions <= 1.1.x " )
362362@JvmName(" Job" )
363363public fun Job0 (parent : Job ? = null): Job = Job (parent)
364364
@@ -488,13 +488,13 @@ public fun Job.cancelChildren(cause: CancellationException? = null) {
488488/* *
489489 * @suppress This method implements old version of JVM ABI. Use [cancel].
490490 */
491- @Deprecated(level = DeprecationLevel .HIDDEN , message = " Binary compatibility" )
491+ @Deprecated(level = DeprecationLevel .HIDDEN , message = " Since 1.2.0, binary compatibility with versions <= 1.1.x " )
492492public fun Job.cancelChildren () = cancelChildren(null )
493493
494494/* *
495495 * @suppress This method has bad semantics when cause is not a [CancellationException]. Use [Job.cancelChildren].
496496 */
497- @Deprecated(level = DeprecationLevel .HIDDEN , message = " Binary compatibility" )
497+ @Deprecated(level = DeprecationLevel .HIDDEN , message = " Since 1.2.0, binary compatibility with versions <= 1.1.x " )
498498public fun Job.cancelChildren (cause : Throwable ? = null) {
499499 children.forEach { (it as ? JobSupport )?.cancelInternal(cause) }
500500}
@@ -531,13 +531,13 @@ public fun CoroutineContext.cancel(cause: CancellationException? = null) {
531531/* *
532532 * @suppress This method implements old version of JVM ABI. Use [CoroutineContext.cancel].
533533 */
534- @Deprecated(level = DeprecationLevel .HIDDEN , message = " Binary compatibility" )
534+ @Deprecated(level = DeprecationLevel .HIDDEN , message = " Since 1.2.0, binary compatibility with versions <= 1.1.x " )
535535public fun CoroutineContext.cancel () = cancel(null )
536536
537537/* *
538538 * @suppress This method has bad semantics when cause is not a [CancellationException]. Use [CoroutineContext.cancel].
539539 */
540- @Deprecated(level = DeprecationLevel .HIDDEN , message = " Binary compatibility" )
540+ @Deprecated(level = DeprecationLevel .HIDDEN , message = " Since 1.2.0, binary compatibility with versions <= 1.1.x " )
541541public fun CoroutineContext.cancel (cause : Throwable ? = null): Boolean =
542542 @Suppress(" DEPRECATION" )
543543 (this [Job ] as ? JobSupport )?.cancelInternal(cause) ? : false
@@ -554,13 +554,13 @@ public fun CoroutineContext.cancelChildren(cause: CancellationException? = null)
554554/* *
555555 * @suppress This method implements old version of JVM ABI. Use [CoroutineContext.cancelChildren].
556556 */
557- @Deprecated(level = DeprecationLevel .HIDDEN , message = " Binary compatibility" )
557+ @Deprecated(level = DeprecationLevel .HIDDEN , message = " Since 1.2.0, binary compatibility with versions <= 1.1.x " )
558558public fun CoroutineContext.cancelChildren () = cancelChildren(null )
559559
560560/* *
561561 * @suppress This method has bad semantics when cause is not a [CancellationException]. Use [CoroutineContext.cancelChildren].
562562 */
563- @Deprecated(level = DeprecationLevel .HIDDEN , message = " Binary compatibility" )
563+ @Deprecated(level = DeprecationLevel .HIDDEN , message = " Since 1.2.0, binary compatibility with versions <= 1.1.x " )
564564public fun CoroutineContext.cancelChildren (cause : Throwable ? = null) {
565565 this [Job ]?.children?.forEach { (it as ? JobSupport )?.cancelInternal(cause) }
566566}
0 commit comments