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

try/catch 去捕获异步的异常?如何捕获? #78

Closed
hzzhujf opened this issue Oct 10, 2018 · 1 comment
Closed

try/catch 去捕获异步的异常?如何捕获? #78

hzzhujf opened this issue Oct 10, 2018 · 1 comment

Comments

@hzzhujf
Copy link

hzzhujf commented Oct 10, 2018

image
楼主是指 try/catch 和 async/await 配合吗?

@Lellansin
Copy link
Contributor

除了 async/await 使用 co 也可以用 try/catch

@hzzhujf hzzhujf closed this as completed Oct 17, 2018
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