onEach

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

Returns a flow which performs the given action on each value of the original flow.