kriszyp/promised-io — pull request #32 by rap1ds (2012-04-23 17:30:21+00:00)
Title: Make all() handle multiple rejected promises. Call rejected as soon as possible.

This fixes issue #30.

The newly added if-clause ensures the all() promise isn't rejected twice. The all() promise is rejected as soon as first promise in the array is rejected.