Skip to content

Instantly share code, notes, and snippets.

@jsor
Created November 14, 2012 20:15
Show Gist options
  • Select an option

  • Save jsor/4074478 to your computer and use it in GitHub Desktop.

Select an option

Save jsor/4074478 to your computer and use it in GitHub Desktop.
$d1 = new Deferred();
$d2 = new Deferred();
When::all(
array('abc' => $d1->promise(), 1 => $d2->promise()),
$mock
);
$d2->resolve(2);
$d1->resolve(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment