arrow-fx-coroutines / arrow.fx.coroutines.stream / drain

drain

suspend fun <O> Stream<O>.drain(): Unit

Runs all the effects of this Stream and ignores all emitted values.

This a terminal operator, meaning this functions suspends until the Stream finishes. If any errors are raised while streaming, it’s thrown from this suspend scope.

Do you like Arrow?

Arrow Org
<