arrow-fx / arrow.fx / IO / effect

effect

fun <A> effect(f: suspend () -> A): IO<A>

Delay a suspended effect.

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

Delay a suspended effect on provided CoroutineContext.

Parameters

ctx - CoroutineContext to run evaluation on.

Do you like Arrow?

Arrow Org
<