Open RickyCook opened 6 years ago
deferUntilTransition
this.handle
processQueue
This allows values to be passed out of the FSM before a state transition happens:
fsm = machina.Fsm({ ..., states: { uninitialized: { '*': function() { this.deferUntilTransitation(); this.transition('start') } }, start: { getValue: function() { return 'the value' } } } }) assert await fsm.handle('getValue') === 'the value'
This change is
deferUntilTransition
this.handle
onprocessQueue
This allows values to be passed out of the FSM before a state transition happens:
This change is