Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I implement timeout logic for state machine? #26

Open
tianxu0836 opened this issue Jan 17, 2020 · 1 comment
Open

How can I implement timeout logic for state machine? #26

tianxu0836 opened this issue Jan 17, 2020 · 1 comment

Comments

@tianxu0836
Copy link

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

@MaTriXy
Copy link

MaTriXy commented Jun 4, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants