arrow-fx-coroutines / arrow.fx.coroutines / Schedule / logOutput

logOutput

abstract fun logOutput(f: suspend (output: Output) -> Unit): Schedule<Input, Output>

Runs an effectful handler on every output. Does not alter the decision.

fun <A> logOutput(f: suspend (A) -> Unit): Schedule<A, A>

Creates a Schedule with an effectful handler on the output.

Do you like Arrow?

Arrow Org
<