Just getting started with coroutines here... Given...
# coroutines
n
Just getting started with coroutines here... Given a
val flow = MutableStateFlow<Boolean>(false)
, How to write a function that suspends until the flow value is true for the first time?
Copy code
suspend fun waitUntilTrue() { ... }
b
Copy code
flow.first { it }
2
n
Love it, thanks!