Actor

interface Actor<Ctx, S>(source)

Inheritors

Functions

Link copied to clipboard
abstract fun <Ctx> effect(ctx: Ctx, action: TypedAction<Ctx>)

Fire-and-forget action dispatch.

Link copied to clipboard
abstract suspend fun <Ctx> immediate(ctx: Ctx, action: TypedAction<Ctx>)

Dispatch action inline, suspending until it completes.

Link copied to clipboard
abstract suspend fun <Ctx> immediateUntil(ctx: Ctx, action: TypedAction<Ctx>, until: (S) -> Boolean): S

Dispatch action, suspending until state matches until.