CoroutinesStateStore

class CoroutinesStateStore<S : MavericksState>(initialState: S, scope: CoroutineScope, contextOverride: CoroutineContext) : MavericksStateStore<S>

Types

Companion
Link copied to clipboard
object Companion

Functions

get
Link copied to clipboard
open override fun get(block: (S) -> Unit)
set
Link copied to clipboard
open override fun set(stateReducer: S.() -> S)

Properties

flow
Link copied to clipboard
open override val flow: Flow<S>

Returns a Flow for this store's state. It will begin by immediately emitting the latest set value and then continue with all subsequent updates.

state
Link copied to clipboard
open override var state: S