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.