Package-level declarations

Types

Link copied to clipboard
data class SubscriberStatusChanged(val subscribersActive: Boolean = false) : Action

An Action that is dispatched to a StoreFlow that is created with SubscriberAwareStoreFlow

Functions

Link copied to clipboard
fun <State> SubscriberAwareStoreFlow(scope: CoroutineScope, initialValue: State, reducer: Reducer<State>, middlewares: List<Middleware<State>> = emptyList()): StoreFlow<State>

Creates a StoreFlow that dispatches SubscriberStatusChanged when subscribers start or stop collecting from it. The actions will fire when the first subscriber starts and the last subscriber stops collecting.