Created
June 7, 2014 00:22
-
-
Save EduceHealth/9743e6a49bad5d3fead6 to your computer and use it in GitHub Desktop.
Parallel promises in an array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aBunchOfThings = []; | |
for(thing in things){ | |
aBunchOfThings.push(OtherThing.find()); | |
} | |
Q.all(aBunchOfThings).then(function(otherthings){ | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment