Tgo1014
false
1
val flow = MutableStateFlow(2) val flowB: StateFlow<Boolean> = flow .map { it == 1 } .stateIn(GlobalScope, SharingStarted.Eagerly, false) println(flow.value) // 2 flow.value = 1 println(flow.value) // 1 println(flowB.value) // false
franztesca
flow
flowB
println
Unconfined
.stateIn(GlobalScope + Dispatchers.Unconfined
A modern programming language that makes developers happier.