Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You've really missed the point spectacularly of that example.

Both those promises start, and both are waited for after both have started..

That is the same as promise.all... There's just an explicit order for the wait, rather than as they resolve, but the result is the same.

Now, promise.any.... You'd have a point...



This is correct, I wasn't paying attention.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: