Skip to content

Instantly share code, notes, and snippets.

@jsor
Created October 18, 2012 19:22
Show Gist options
  • Save jsor/3914225 to your computer and use it in GitHub Desktop.
Save jsor/3914225 to your computer and use it in GitHub Desktop.
Promise::when(array($promise1, $promise2))
->then(function($resultOfPromise1, $resultOfPromise2) {
});
// VS.
Promise::when(array($promise1, $promise2))
->then(function(array $resultsOfPromisesAsArray) {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment