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

不知道为什么.老是有Unhandled rejection timeout输出 #13

Open
yhuaqiang opened this issue Sep 8, 2020 · 3 comments
Open

不知道为什么.老是有Unhandled rejection timeout输出 #13

yhuaqiang opened this issue Sep 8, 2020 · 3 comments

Comments

@yhuaqiang
Copy link

现有的workReject 不显示当前单元信息吗?
没法调试都

@cnwhy
Copy link
Owner

cnwhy commented Sep 14, 2020

方便贴一些使用代码么, 好分析原因

@yhuaqiang
Copy link
Author

这个解决了, 是每隔单元没有设置timeout的问题,

还有个问题,无法捕捉queue.clear(reason)的异常.

@yhuaqiang
Copy link
Author

1.当调用queue.clear('abort')时, 出现的异常不会捕获到
2. 对应的work并没有真正结束, 尤其是里面的promise中有sleep方法时

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