Skip to content

Instantly share code, notes, and snippets.

@raycmorgan
Created November 5, 2009 01:04
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 raycmorgan/226594 to your computer and use it in GitHub Desktop.
Save raycmorgan/226594 to your computer and use it in GitHub Desktop.
var p = Promise.join(p1, p2, p3)
p.addCallback(function (p1Res, p2Res, p3Res) {
// p1Res, p2Res, p3Res are arrays
});
// or //
p.addCallback(
function (p1Res) {
},
function (p2Res) {
},
function (p3Res) {
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment