@@ -10,9 +10,9 @@ import kotlinx.coroutines.flow.asStateFlow
1010import kotlinx.coroutines.flow.drop
1111import kotlinx.coroutines.flow.first
1212import kotlinx.coroutines.launch
13+ import org.mobilenativefoundation.store.core5.ExperimentalStoreApi
1314import org.mobilenativefoundation.store.core5.StoreData
1415import org.mobilenativefoundation.store.core5.StoreKey
15- import org.mobilenativefoundation.store.store5.ExperimentalStoreApi
1616import org.mobilenativefoundation.store.store5.MutableStore
1717import org.mobilenativefoundation.store.store5.Store
1818import org.mobilenativefoundation.store.store5.StoreReadRequest
@@ -27,6 +27,7 @@ private class StopProcessingException : Exception()
2727 * @param stream A lambda that invokes [Store.stream].
2828 * @return A read-only [StateFlow] reflecting the state of the Store.
2929 */
30+ @ExperimentalStoreApi
3031private fun <Id : Any , Key : StoreKey <Id >, Output : StoreData <Id >> launchPagingStore (
3132 scope : CoroutineScope ,
3233 keys : Flow <Key >,
@@ -73,6 +74,7 @@ private fun <Id : Any, Key : StoreKey<Id>, Output : StoreData<Id>> launchPagingS
7374 * Initializes and returns a [StateFlow] that reflects the state of the [Store], updating by a flow of provided keys.
7475 * @see [launchPagingStore].
7576 */
77+ @ExperimentalStoreApi
7678fun <Id : Any , Key : StoreKey <Id >, Output : StoreData <Id >> Store <Key , Output >.launchPagingStore (
7779 scope : CoroutineScope ,
7880 keys : Flow <Key >,
@@ -86,7 +88,7 @@ fun <Id : Any, Key : StoreKey<Id>, Output : StoreData<Id>> Store<Key, Output>.la
8688 * Initializes and returns a [StateFlow] that reflects the state of the [Store], updating by a flow of provided keys.
8789 * @see [launchPagingStore].
8890 */
89- @OptIn( ExperimentalStoreApi :: class )
91+ @ExperimentalStoreApi
9092fun <Id : Any , Key : StoreKey <Id >, Output : StoreData <Id >> MutableStore <Key , Output >.launchPagingStore (
9193 scope : CoroutineScope ,
9294 keys : Flow <Key >,
@@ -96,6 +98,7 @@ fun <Id : Any, Key : StoreKey<Id>, Output : StoreData<Id>> MutableStore<Key, Out
9698 }
9799}
98100
101+ @ExperimentalStoreApi
99102private fun <Id : Any , Key : StoreKey .Collection <Id >, Output : StoreData <Id >> joinData (
100103 key : Key ,
101104 prevResponse : StoreReadResponse <Output >,
0 commit comments