gookit / event

📢 Lightweight event manager and dispatcher implements by Go. Go实现的轻量级的事件管理、调度程序库, 支持设置监听器的优先级, 支持使用通配符来进行一组事件的监听
https://pgk.go.dev/github.com/gookit/event
MIT License
513 stars 59 forks source link

如何比较好的处理 #58

Open feymanlee opened 10 months ago

feymanlee commented 10 months ago

Listener 的 Handle 方法中发生的 panic,需要怎么才能 recover 到呢

inhere commented 10 months ago

直接在 Handle 方法里 recover, 要不就在统一注册的地方处理