StateMachine

class StateMachine()

Constructors

Methods


Constructors

StateMachine.constructor(state, reducer)
Arguments:
  • state (State()) – None
  • reducer (StateReducer <State, ActionNames>) – None
Return type:

StateMachine()

Methods

handle

StateMachine.handle(evt[, payload])
Arguments:
  • evt (ActionNames()) –
  • payload (any()) – optional
Return type:

void