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

Calling WaitGroup.Wait during state processing causes Fire to freeze and the state machine to freeze #89

Open
NOWXF opened this issue Nov 12, 2024 · 1 comment

Comments

@NOWXF
Copy link

NOWXF commented Nov 12, 2024

During the event processing of the state machine, the warit of the waitgroup is called, which causes Fire to freeze.
Illustrate:
In the state machine, i need to use a timer, via time. NewTicker creates timers, timers. C to the end, call Fire to send a signal. When exiting the state, the timer is called to stop, and when the wait coroutine is stopped, the tracking finds that Fire is stuck.

I didn't find a similar problem, please help me.

@NOWXF
Copy link
Author

NOWXF commented Nov 12, 2024

I understand that calling Wait in state handling is not quite correct, and it is not allowed here in the first place. So are there any other recommended solutions to solve the problem?

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

1 participant