Why does not recover panic in goroutine

前端 未结 0 1799
一向
一向 2021-02-04 22:40

how to recover panic in goroutine at the top level? Works of goroutine and recover in one level. As in the example does not work!

defer func() {
    if err := rec         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题