natario1
10/31/2020, 1:02 PMval flow = MutableStateFlow<Boolean>(false)
, How to write a function that suspends until the flow value is true for the first time?
suspend fun waitUntilTrue() { ... }
bezrukov
10/31/2020, 1:14 PMflow.first { it }
natario1
10/31/2020, 2:18 PM