moleculeFlow

fun <T> moleculeFlow(body: @Composable() () -> T): Flow<T>

Create a Flow which will continually recompose body to produce a stream of T values when collected.

The CoroutineScope in which the returned Flow is collected must contain a MonotonicFrameClock key which controls when recomposition occurs.