Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In the case where either: a) Not all values in the input array are promises (many orders of magnitude improvement) b) Some of the promises are already resolve (about twice as quick). It does this by not waiting till the next turn of the event loop when it is un-necessary to do so. Deferred will already ensure that the overall behaviour of all is correct with regard to resolving exactly once.
- Loading branch information