@Composable fun counter ( start : Int = 0 ): Int { var count by remember { mutableStateOf ( start ) } LaunchedEffect ( Unit ) { while ( true ) { delay ( 1 . test { assertEquals ( 0 , awaitItem ()) assertEquals ( 1 , awaitItem ()) assertEquals ( 2 , awaitItem ()) } } @Test fun countStart () = runTest { countFlow ( start = 3 ). Whether it’s a 100% Compose UI Android app, a Kotlin multiplatform project with many targets, or something in-between, Molecule is here to help you manage state using Compose.