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

usage question: several async tasks run parallelly, and i want to stop if any one of these task complete, how to? #765

Closed
tomwang1013 opened this issue May 21, 2015 · 1 comment

Comments

@tomwang1013
Copy link

i want to use async.parallel(), but want to stop all tasks if any one of them completes. is there any way to do it?

@aearly
Copy link
Collaborator

aearly commented May 21, 2015

An often requested feature (#568 #591), we're probably going to add something like this. For now, I think you can rig something up with detect --- callback(true) in the first callback.

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

No branches or pull requests

2 participants