Open zishang520 opened 2 years ago
Calling the RemoveListener event in the Emit event will cause a deadlock:
foo := func(...any){ } event.On("test", func(...any){ event.RemoveListener("other",foo) }) event.Emit("test")
And RemoveListener cannot remove events added by Once
Calling the RemoveListener event in the Emit event will cause a deadlock: