arrow-fx / arrow.fx.typeclasses / Bracket / onError

onError

open fun <A> Kind<F, A>.onError(finalizer: (E) -> Kind<F, Unit>): Kind<F, A>

Executes the given finalizer with the given error when the source is finished in error.

Do you like Arrow?

Arrow Org
<