@@ -71,7 +71,6 @@ internal inline fun <T, R> Flow<T>.unsafeTransform(
71
71
* .collect { println(it) } // prints Begin, a, b, c
72
72
* ```
73
73
*/
74
- @ExperimentalCoroutinesApi
75
74
public fun <T > Flow<T>.onStart (
76
75
action : suspend FlowCollector <T >.() -> Unit
77
76
): Flow <T > = unsafeFlow { // Note: unsafe flow is used here, but safe collector is used to invoke start action
@@ -142,7 +141,6 @@ public fun <T> Flow<T>.onStart(
142
141
* In case of failure or cancellation, any attempt to emit additional elements throws the corresponding exception.
143
142
* Use [catch] if you need to suppress failure and replace it with emission of elements.
144
143
*/
145
- @ExperimentalCoroutinesApi
146
144
public fun <T > Flow<T>.onCompletion (
147
145
action : suspend FlowCollector <T >.(cause: Throwable ? ) -> Unit
148
146
): Flow <T > = unsafeFlow { // Note: unsafe flow is used here, but safe collector is used to invoke completion action
@@ -173,7 +171,6 @@ public fun <T> Flow<T>.onCompletion(
173
171
* }.collect { println(it) } // prints 1, 2
174
172
* ```
175
173
*/
176
- @ExperimentalCoroutinesApi
177
174
public fun <T > Flow<T>.onEmpty (
178
175
action : suspend FlowCollector <T >.() -> Unit
179
176
): Flow <T > = unsafeFlow {
0 commit comments