forEach

fun <T> forEach(flow: ERROR CLASS: Symbol not found for Flow<T>, action: Consumer<T>)

Passes each element of flow to action as it arrives, blocking until flow completes.


fun <T : Any> forEach(publisher: Publisher<T>, action: Consumer<T>)

Passes each element of publisher to action, blocking until publisher completes.