You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package that You wish to enhance
signal funcs forgproc
Enhancement description
The Listen() method should be executed only once. In business encapsulation, signal listening might be called in different packages, and there could be multiple calls to Listen() (typically done in a goroutine), resulting in the handlers being registered and executed multiple times.
After the execution of Listen(), calling AddSigHandler() to add new custom signal handlers may fail to properly listen to the signals.
If Listen() is called in one goroutine, and then AddSigHandler()/AddSigHandlerShutdown() is called in another goroutine, it may lead to data race issues, primarily due to the signalHandlerMap, an internal variable of type map.
Additional
The text was updated successfully, but these errors were encountered:
Package that You wish to enhance
signal funcs for
gproc
Enhancement description
The Listen() method should be executed only once. In business encapsulation, signal listening might be called in different packages, and there could be multiple calls to Listen() (typically done in a goroutine), resulting in the handlers being registered and executed multiple times.
After the execution of Listen(), calling AddSigHandler() to add new custom signal handlers may fail to properly listen to the signals.
If Listen() is called in one goroutine, and then AddSigHandler()/AddSigHandlerShutdown() is called in another goroutine, it may lead to data race issues, primarily due to the signalHandlerMap, an internal variable of type map.
Additional
The text was updated successfully, but these errors were encountered: