arrow-fx / arrow.fx.extensions / IOAsync / async

async

open fun <A> async(fa: Proc<A>): IO<A>

Creates an instance of F that executes an asynchronous process on evaluation.

This combinator can be used to wrap callbacks or other similar impure code.

Parameters

fa - an asynchronous computation that might fail typed as Proc.

See Also

asyncF

Do you like Arrow?

Arrow Org
<