Skip to content

MachineExecutionContext

Defined in: types.ts:243

PropertyTypeDescriptionDefined in
fsmValidator?StateMachineValidator-types.ts:244
getCurrentState?() => any-types.ts:245
modeEpochs?Map<string, number>Per-machine count of committed mode changes. A machine timer only fires if the count is unchanged since it was scheduled, i.e. the machine is still in the state visit that scheduled it (ADR 0025).types.ts:259
projectAction?(state, action) => anyApply a sync action to a state value without committing it (the shared applyAction reducer). machine/sequence uses it to project each step’s sync writes so later steps’ invariants see them; without it, every step validates against the starting state (ADR 0012).types.ts:266
retryTracker?Map<string, number>-types.ts:253
scheduleCallback?(fn, delayMs) => voidRun fn after delayMs on a timer the provider owns (cleared on unmount). Used for machine/delay and machine/retry backoff; falls back to setTimeout when absent.types.ts:252
scheduleDelayedAction?(action, delayMs) => void-types.ts:246