arrow-fx-coroutines / arrow.fx.coroutines.stream / Stream / effect_
fun effect_(fa: suspend () ->
Unit
):
Stream
<
Nothing
>
Creates a stream that evaluates the supplied fa
for its effect, discarding the output value.
As a result, the returned stream emits no elements and hence has output type INothing
.
Alias for effect(fa).drain
.
import arrow.fx.coroutines.stream.*
//sampleEnd
suspend fun main(): Unit =
Stream.effect_ { println("Ran") }
.toList()
.let(::println) // []
//sampleStart
Do you like Arrow?
✖