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

是不是少提供了一个Close方法,我看WorkPool对象有个IsClosed方法 #5

Open
miaozilong opened this issue Dec 5, 2021 · 2 comments

Comments

@miaozilong
Copy link

我现在要实现一个功能,类似于Promise.race() 就是只要有一个任务成功了,就算成功,其他的任务就不要执行了,我需要在异步函数中调用Close方法

@miaozilong
Copy link
Author

image

@xxjwxc
Copy link
Owner

xxjwxc commented Dec 6, 2021

ok,我添加一个close方法

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