arrow-fx / arrow.fx / IO / runAsync

runAsync

fun runAsync(cb: (Either<Throwable, A>) -> IOOf<Unit>): IO<Unit>

runAsync allows you to run any IO in a referential transparent manner.

Reason it can happen in a referential transparent manner is because nothing is actually running when this method is invoked. The combinator can be used to define how several programs have to run in a safe manner.

Do you like Arrow?

Arrow Org
<