arrow-fx / arrow.fx.extensions / IOAsync / effect

effect

open fun <A> effect(ctx: CoroutineContext, f: suspend () -> A): IO<A>

Delay a suspended effect on provided CoroutineContext.

Parameters

ctx - CoroutineContext to run evaluation on.open fun <A> effect(f: suspend () -> A): IO<A>

Delay a suspended effect.

Do you like Arrow?

Arrow Org
<