interactionModel
constinteractionModel:StateMachine<never, {type:string; }, {[key:string]:AnyActor; },"waiting"|"idle",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/interaction";initial:"idle";states: {idle: {on: {arrive: {target:"waiting"; }; }; };waiting: {on: {expire: {target:"idle"; };start: {target:"idle"; }; }; }; }; }>
Defined in: packages/core/src/state-machine/index.ts:642
A buffered interaction waiting for a writer lease.
idle ──arrive──▶ waiting ──start──▶ idle │ └──expire──▶ idleThe wait is bounded by the caller’s deadline: a press that loses the lease
race waits briefly for the current writer, then either runs (start) or is
dropped with an explicit expire. Both outcomes return to idle; the
handler itself runs inside the lease and is not a state of this machine.
This is the “coyote time” for a user action that arrives just outside the
legal window.
Type Declaration
Section titled “Type Declaration”states
Section titled “states”states:
object
states.id
Section titled “states.id”
readonlyid:"arona/interaction"="arona/interaction"
states.initial
Section titled “states.initial”
readonlyinitial:"idle"="idle"
states.states
Section titled “states.states”
readonlystates:object
states.states.idle
Section titled “states.states.idle”
readonlyidle:object
states.states.idle.on
Section titled “states.states.idle.on”
readonlyon:object
states.states.idle.on.arrive
Section titled “states.states.idle.on.arrive”
readonlyarrive:object
states.states.idle.on.arrive.target
Section titled “states.states.idle.on.arrive.target”
readonlytarget:"waiting"="waiting"
states.states.waiting
Section titled “states.states.waiting”
readonlywaiting:object
states.states.waiting.on
Section titled “states.states.waiting.on”
readonlyon:object
states.states.waiting.on.expire
Section titled “states.states.waiting.on.expire”
readonlyexpire:object
states.states.waiting.on.expire.target
Section titled “states.states.waiting.on.expire.target”
readonlytarget:"idle"="idle"
states.states.waiting.on.start
Section titled “states.states.waiting.on.start”
readonlystart:object
states.states.waiting.on.start.target
Section titled “states.states.waiting.on.start.target”
readonlytarget:"idle"="idle"