arrow-fx / arrow.fx.typeclasses / Async / effect

effect

open fun <A> effect(f: suspend () -> A): Kind<F, A>

Delay a suspended effect.

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

Delay a suspended effect on provided CoroutineContext.

Parameters

ctx - CoroutineContext to run evaluation on.

Do you like Arrow?

Arrow Org
<