onEach

fun <T> Flow<T>.onEach(action: suspend (T) -> Unit): Flow<T>

Returns a flow that invokes the given actionbefore each value of the upstream flow is emitted downstream.

Sources

common source
Link copied to clipboard