@@ -166,13 +166,13 @@ public interface Job : CoroutineContext.Element {
166
166
/* *
167
167
* @suppress This method implements old version of JVM ABI. Use [cancel].
168
168
*/
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 " )
170
170
public fun cancel () = cancel(null )
171
171
172
172
/* *
173
173
* @suppress This method has bad semantics when cause is not a [CancellationException]. Use [cancel].
174
174
*/
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 " )
176
176
public fun cancel (cause : Throwable ? = null): Boolean
177
177
178
178
// ------------ parent-child ------------
@@ -358,7 +358,7 @@ public fun Job(parent: Job? = null): CompletableJob = JobImpl(parent)
358
358
359
359
/* * @suppress Binary compatibility only */
360
360
@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 " )
362
362
@JvmName(" Job" )
363
363
public fun Job0 (parent : Job ? = null): Job = Job (parent)
364
364
@@ -488,13 +488,13 @@ public fun Job.cancelChildren(cause: CancellationException? = null) {
488
488
/* *
489
489
* @suppress This method implements old version of JVM ABI. Use [cancel].
490
490
*/
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 " )
492
492
public fun Job.cancelChildren () = cancelChildren(null )
493
493
494
494
/* *
495
495
* @suppress This method has bad semantics when cause is not a [CancellationException]. Use [Job.cancelChildren].
496
496
*/
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 " )
498
498
public fun Job.cancelChildren (cause : Throwable ? = null) {
499
499
children.forEach { (it as ? JobSupport )?.cancelInternal(cause) }
500
500
}
@@ -531,13 +531,13 @@ public fun CoroutineContext.cancel(cause: CancellationException? = null) {
531
531
/* *
532
532
* @suppress This method implements old version of JVM ABI. Use [CoroutineContext.cancel].
533
533
*/
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 " )
535
535
public fun CoroutineContext.cancel () = cancel(null )
536
536
537
537
/* *
538
538
* @suppress This method has bad semantics when cause is not a [CancellationException]. Use [CoroutineContext.cancel].
539
539
*/
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 " )
541
541
public fun CoroutineContext.cancel (cause : Throwable ? = null): Boolean =
542
542
@Suppress(" DEPRECATION" )
543
543
(this [Job ] as ? JobSupport )?.cancelInternal(cause) ? : false
@@ -554,13 +554,13 @@ public fun CoroutineContext.cancelChildren(cause: CancellationException? = null)
554
554
/* *
555
555
* @suppress This method implements old version of JVM ABI. Use [CoroutineContext.cancelChildren].
556
556
*/
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 " )
558
558
public fun CoroutineContext.cancelChildren () = cancelChildren(null )
559
559
560
560
/* *
561
561
* @suppress This method has bad semantics when cause is not a [CancellationException]. Use [CoroutineContext.cancelChildren].
562
562
*/
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 " )
564
564
public fun CoroutineContext.cancelChildren (cause : Throwable ? = null) {
565
565
this [Job ]?.children?.forEach { (it as ? JobSupport )?.cancelInternal(cause) }
566
566
}
0 commit comments