File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
reactive/kotlinx-coroutines-reactive/src Expand file tree Collapse file tree 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) =
3636 * Subscribes to this [Publisher] and performs the specified action for each received element.
3737 * Cancels subscription if any exception happens during collect.
3838 */
39- @ExperimentalCoroutinesApi // Since 1.2.1, tentatively till 1.3.0
4039public suspend inline fun <T > Publisher<T>.collect (action : (T ) -> Unit ) =
4140 openSubscription().consumeEach(action)
4241
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public fun <T> publish(
4848
4949@Deprecated(
5050 message = " CoroutineScope.publish is deprecated in favour of top-level publish" ,
51- level = DeprecationLevel .WARNING ,
51+ level = DeprecationLevel .ERROR ,
5252 replaceWith = ReplaceWith (" publish(context, block)" )
5353) // Since 1.3.0, will be error in 1.3.1 and hidden in 1.4.0. Binary compatibility with Spring
5454@LowPriorityInOverloadResolution
You can’t perform that action at this time.
0 commit comments