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

并发数限制问题 #21

Closed
zhangfeixiang opened this issue May 3, 2018 · 4 comments
Closed

并发数限制问题 #21

zhangfeixiang opened this issue May 3, 2018 · 4 comments

Comments

@zhangfeixiang
Copy link

我限制了并发数5个,为什么不会接着往下执行了。我的期望是,当前5个结束自动开始下5个,或者结束1个开始1个,始终保持最多5个任务。

@JacksonTian
Copy link
Owner

怎么使用的

@JacksonTian
Copy link
Owner

设计上就是最多5个并行,结束一个,开始一个。

@zhangfeixiang
Copy link
Author

你的Demo里面的 async() 怎么写的?

@zhangfeixiang
Copy link
Author

找到原因了,async(callback) 函数内必须调用回调函数。

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