Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recover放到单独的goroutine中了 #18

Closed
doubler1125 opened this issue Feb 17, 2024 · 2 comments
Closed

recover放到单独的goroutine中了 #18

doubler1125 opened this issue Feb 17, 2024 · 2 comments

Comments

@doubler1125
Copy link

doubler1125 commented Feb 17, 2024

image
这样写此处的recover岂不是永远走不到

@skyhackvip
Copy link
Owner

感谢您的提醒,recover 只能捕获同一个goroutine中的panic,所以这里确实存在问题。我会fix这个bug

@skyhackvip
Copy link
Owner

image 这样写此处的recover岂不是永远走不到

已修复:
#19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants