StateMachine.microstep() method​
Determines the next state given the current state
and event
. Calculates a microstep.
Signature:
microstep(state: MachineSnapshot<TContext, TEvent, TActor, TTag, TOutput, TResolvedTypesMeta>, event: TEvent, actorCtx: AnyActorContext): Array<MachineSnapshot<TContext, TEvent, TActor, TTag, TOutput, TResolvedTypesMeta>>;
Parameters​
Parameter | Type | Description |
---|---|---|
state | MachineSnapshot<TContext, TEvent, TActor, TTag, TOutput, TResolvedTypesMeta> | The current state |
event | TEvent | The received event |
actorCtx | AnyActorContext |
Returns:
Array<MachineSnapshot<TContext, TEvent, TActor, TTag, TOutput, TResolvedTypesMeta>>