kmongo / org.litote.kmongo.coroutine / CoroutinePublisher / consumeEach

consumeEach

suspend fun consumeEach(action: suspend (T) -> Unit): Unit (source)

iterates over all elements from the publisher