arrow-fx-coroutines / arrow.fx.coroutines.stream / toSet
suspend fun <O>
Stream
<O>.toSet():
Set
<O>
Runs all the effects of this Stream and collects all emitted values into a Set. If the Stream doesn’t emit any values it returns emptySet.
This a terminal operator, meaning this functions suspend
s until the Stream finishes.
If any errors are raised while streaming, it’s thrown from this suspend
scope.
Do you like Arrow?
✖