selectState

open suspend override fun <S : ModuleState> selectState(stateClass: KClass<S>): StateFlow<S>(source)

Select a module's state flow by its class.

Return

StateFlow of the requested state type

Parameters

stateClass

The KClass of the state to select


inline suspend fun <S : ModuleState> selectState(): StateFlow<S>(source)