Skip to content

Instantly share code, notes, and snippets.

@mrm8488
Created December 23, 2015 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrm8488/425dc024ee9c870a9a77 to your computer and use it in GitHub Desktop.
Save mrm8488/425dc024ee9c870a9a77 to your computer and use it in GitHub Desktop.
Promise.all([User.findAllUsers(), User.findUserById(<id>)]).then(function(results) {
// results[0] contains the result of the first promise
// results[1] contains the result of the second promise
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment