Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlinStateFlow SharedFlowSingle-choice MCQ

Why might a collector of this StateFlow miss the intermediate value 1?

val state = MutableStateFlow(0) // producer state.value = 1 state.value = 2