StateMachine icon indicating copy to clipboard operation
StateMachine copied to clipboard

How can I implement timeout logic for state machine?

Open tianxu0836 opened this issue 6 years ago • 1 comments

Some of the state will need a timeout to go to idle or something. How do you do that? Can somewhere give an example?

tianxu0836 avatar Jan 17 '20 21:01 tianxu0836

Why not try adding a timer onEnter in each step and when timer is fired check if still in current state and transition it to the new state or idle as your logic requires.

MaTriXy avatar Jun 04 '20 06:06 MaTriXy