@@ -45,28 +45,28 @@ public fun <T> StateFlow<T>.distinctUntilChanged(): Flow<T> = noImpl()
45
45
46
46
@Deprecated(
47
47
message = " isActive is resolved into the extension of outer CoroutineScope which is likely to be an error." +
48
- " Use currentContext ().isActive or cancellable() operator instead " +
48
+ " Use currentCoroutineContext ().isActive or cancellable() operator instead " +
49
49
" or specify the receiver of isActive explicitly. " +
50
50
" Additionally, flow {} builder emissions are cancellable by default." ,
51
51
level = DeprecationLevel .WARNING , // ERROR in 1.4
52
- replaceWith = ReplaceWith (" currentContext ().isActive" )
52
+ replaceWith = ReplaceWith (" currentCoroutineContext ().isActive" )
53
53
)
54
54
public val FlowCollector <* >.isActive: Boolean
55
55
get() = noImpl()
56
56
57
57
@Deprecated(
58
58
message = " cancel() is resolved into the extension of outer CoroutineScope which is likely to be an error." +
59
- " Use currentContext ().cancel() instead or specify the receiver of cancel() explicitly" ,
59
+ " Use currentCoroutineContext ().cancel() instead or specify the receiver of cancel() explicitly" ,
60
60
level = DeprecationLevel .WARNING , // ERROR in 1.4
61
- replaceWith = ReplaceWith (" currentContext ().cancel(cause)" )
61
+ replaceWith = ReplaceWith (" currentCoroutineContext ().cancel(cause)" )
62
62
)
63
63
public fun FlowCollector <* >.cancel (cause : CancellationException ? = null): Unit = noImpl()
64
64
65
65
@Deprecated(
66
66
message = " coroutineContext is resolved into the property of outer CoroutineScope which is likely to be an error." +
67
- " Use currentContext () instead or specify the receiver of coroutineContext explicitly" ,
67
+ " Use currentCoroutineContext () instead or specify the receiver of coroutineContext explicitly" ,
68
68
level = DeprecationLevel .WARNING , // ERROR in 1.4
69
- replaceWith = ReplaceWith (" currentContext ()" )
69
+ replaceWith = ReplaceWith (" currentCoroutineContext ()" )
70
70
)
71
71
public val FlowCollector <* >.coroutineContext: CoroutineContext
72
72
get() = noImpl()
0 commit comments