Aidan Low
fun TestScope.observeStateFlows( vararg stateFlows: StateFlow<Any?>, block: () -> Unit ) { val observationJobs = stateFlows.map { flow -> launch { flow.collect {} } } try { runCurrent() block.invoke() } finally { observationJobs.forEach { it.cancel() } } }
A modern programming language that makes developers happier.