-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
is there any way to set timeout in parallel? #429
Comments
Why is this closed? Is there a way to do this because I have a similar issue in my app. I'd like to set a timeout to force the execution to halt. I'm making parallel requests in different webservers and if they do not reply back within a deadline I want to stop the execution and get the results up to now. I sort of hacked this using a setTimeout in a dummy function in which I return an error to cause the execution to halt and get the results. It'll be much better if we could have a timeout parameter.
|
It should be easy enough to come up with a timeout wrapper for any callback interface. I'd even be open to including that in async. |
I want to run multiple functions in parallel, in specified time.
If timeout is occurred, i want to get completed results at the moment. (except the results of uncompleted functions at the moment)
Is there any way to do that?
In my opinion, if i need partial results (completed results of functions before timeout is occurred) when timeout is occurred, setTimeout() must be in async function.
I need function like this...
async.parallelInTime(tasks, timeout, [callback]);
What do you think about this?
The text was updated successfully, but these errors were encountered: