hsm.core.run

run(sm, final_state)

Run the statemachine until the final state is reached. Events are dispatched a synchronous way.