File tree 1 file changed +5
-2
lines changed
kotlinx-coroutines-core/common/src
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -169,10 +169,13 @@ public interface Job : CoroutineContext.Element {
169
169
public fun cancel (): Unit
170
170
171
171
/* *
172
- * @suppress
172
+ * @suppress **Deprecated**: This function is obsolete.
173
+ * Use [CompletableJob.completeExceptionally] or [CompletableDeferred.completeExceptionally] with exception,
174
+ * or [Job.cancel] without exception instead.
173
175
*/
174
176
@ObsoleteCoroutinesApi
175
- @Deprecated(level = DeprecationLevel .WARNING , message = " Use CompletableDeferred.completeExceptionally(cause) or Job.cancel() instead" ,
177
+ @Deprecated(level = DeprecationLevel .ERROR ,
178
+ message = " Use completeExceptionally(cause) on CompletableDeferred/Job or Job.cancel() without exception instead" ,
176
179
replaceWith = ReplaceWith (" cancel()" )
177
180
)
178
181
public fun cancel (cause : Throwable ? = null): Boolean
You can’t perform that action at this time.
0 commit comments