Skip to content

targetModeModel

const targetModeModel: StateMachine<never, { type: string; }, {[key: string]: AnyActor; }, "live" | "paused", string, unknown, { }, { type: string; }, never, object & object, Record<string, (…args) => void | { children?: any; context?: any; }>, Record<string, AnyActorLogic>, Record<string, Function>, Record<string, number | Function>, never, never> & object & MachineIdentity<{ id: "arona/message-target-mode"; initial: "live"; states: { live: { on: { pause: { target: "paused"; }; }; }; paused: { on: { resume: { target: "live"; }; }; }; }; }>

Defined in: packages/core/src/state-machine/index.ts:510

Pausing is a mode beside the send lifecycle, not a fourth send state: a send already in flight still settles, and the target holds the queued snapshot once it is idle again.

live ◀──resume──▶ paused

states: object

readonly id: "arona/message-target-mode" = "arona/message-target-mode"

readonly initial: "live" = "live"

readonly states: object

readonly live: object

readonly on: object

readonly pause: object

readonly target: "paused" = "paused"

readonly paused: object

readonly on: object

readonly resume: object

readonly target: "live" = "live"