sml
sml copied to clipboard
How to make a state transition that changes to the next state upon completion of its action?
Expected Behavior I was trying to write a certain state that doesn't listen to incoming events for some time and just ignores them. I was trying to either use a sub-machine and pass it as an event to the guard check of the top-machine or I was looking for an option to modify the active state of the state machine from within the action.
Actual Behavior The state machine changes to the state immediately when an event is received and doesn't wait for the action to complete.
Specifications
- Version: 1.1.9
- Platform: Linux
- Subsystem: g++ (GCC) 13.2.1 20230801