effect

fun <A : Action> effect(effectId: EffectId, triggerAction: A, ownerId: OwnerId? = null, block: suspend () -> A): Effect<A>

Effect builder function.

block contains the logic the effect should perform and returns its result as an Action

See the documentation of Effect.

See also