You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can personally conclude that the 2nd instance is the correct one.
As clarified at the bottom of this example found in the README:
async.parallel([function(callback){setTimeout(function(){callback(null,'one');},200);},function(callback){setTimeout(function(){callback(null,'two');},100);},],// optional callbackfunction(err,results){// the results array will equal ['one','two'] even though// the second function had a shorter timeout.});
I understand that the
async.parallel
method run its task functions in parallel. However I am unsure about the order of the results.Is the order of the results array dependant on:
When the parallel tasks callback. The first task to callback will have its results first in the final results array.
or
The order of the tasks were supplied in the
async.parrallel
method. The first task method will have its result first in the final results array.The text was updated successfully, but these errors were encountered: