Skip to content

Commit b0d902e

Browse files
committed
Revert "OptIn to ExperimentalForInheritanceCoroutinesApi"
This reverts commit 97f8366.
1 parent d8129ba commit b0d902e

File tree

1 file changed

+0
-3
lines changed
  • kmp-observableviewmodel-core/src/appleMain/kotlin/com/rickclephas/kmp/observableviewmodel

1 file changed

+0
-3
lines changed

kmp-observableviewmodel-core/src/appleMain/kotlin/com/rickclephas/kmp/observableviewmodel/StateFlow.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public actual fun <T> MutableStateFlow(
1717
* A [MutableStateFlow] that triggers [ViewModelScopeImpl.sendObjectWillChange]
1818
* and accounts for the [ViewModelScopeImpl.subscriptionCount].
1919
*/
20-
@OptIn(ExperimentalForInheritanceCoroutinesApi::class)
2120
private class MutableStateFlowImpl<T>(
2221
private val viewModelScope: ViewModelScopeImpl,
2322
private val stateFlow: MutableStateFlow<T>
@@ -68,7 +67,6 @@ private class MutableStateFlowImpl<T>(
6867
/**
6968
* A [StateFlow] that combines the subscription counts of a [ViewModelScopeImpl] and [StateFlow].
7069
*/
71-
@OptIn(ExperimentalForInheritanceCoroutinesApi::class)
7270
private class SubscriptionCountFlow(
7371
private val viewModelScopeSubscriptionCount: StateFlow<Int>,
7472
private val stateFlowSubscriptionCount: StateFlow<Int>
@@ -141,7 +139,6 @@ private fun <T> CoroutineScope.launchSharing(
141139
* Similar to the kotlinx.coroutines implementation, used to return a read-only StateFlow with an optional Job.
142140
* https://github.com/Kotlin/kotlinx.coroutines/blob/6dfabf763fe9fc91fbb73eb0f2d5b488f53043f1/kotlinx-coroutines-core/common/src/flow/operators/Share.kt#L379
143141
*/
144-
@OptIn(ExperimentalForInheritanceCoroutinesApi::class)
145142
private class ReadonlyStateFlow<T>(
146143
flow: StateFlow<T>,
147144
@Suppress("unused")

0 commit comments

Comments
 (0)