Skip to content

Commit 65f20ad

Browse files
authored
Improve wording in the deprecation message
1 parent da4eab8 commit 65f20ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/jvm/src/Future.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import java.util.concurrent.*
1313
* ```
1414
*/
1515
@Deprecated(
16-
"This function does not do what its name implies: it will not cancel the future if just cancel() was called.",
16+
"This function does not do what its name implies: it will not cancel the future if the continuation was cancelled without a cause specified (e.g., via `cancel()` with no argument).",
1717
level = DeprecationLevel.WARNING,
1818
replaceWith = ReplaceWith("this.invokeOnCancellation { future.cancel(false) }")
1919
)

0 commit comments

Comments
 (0)