collectAsEffect

fun <T> Flow<T>.collectAsEffect(block: (T) -> Unit)

Collects a Flow in a composable scope, invoking block on each emission. Shorthand utility to avoid manual LaunchedEffect wiring.