File tree 2 files changed +1
-2
lines changed
reactive/kotlinx-coroutines-reactive/src
2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ public suspend inline fun <T> Publisher<T>.consumeEach(action: (T) -> Unit) =
36
36
* Subscribes to this [Publisher] and performs the specified action for each received element.
37
37
* Cancels subscription if any exception happens during collect.
38
38
*/
39
- @ExperimentalCoroutinesApi // Since 1.2.1, tentatively till 1.3.0
40
39
public suspend inline fun <T > Publisher<T>.collect (action : (T ) -> Unit ) =
41
40
openSubscription().consumeEach(action)
42
41
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public fun <T> publish(
48
48
49
49
@Deprecated(
50
50
message = " CoroutineScope.publish is deprecated in favour of top-level publish" ,
51
- level = DeprecationLevel .WARNING ,
51
+ level = DeprecationLevel .ERROR ,
52
52
replaceWith = ReplaceWith (" publish(context, block)" )
53
53
) // Since 1.3.0, will be error in 1.3.1 and hidden in 1.4.0. Binary compatibility with Spring
54
54
@LowPriorityInOverloadResolution
You can’t perform that action at this time.
0 commit comments