Hacker News new | past | comments | ask | show | jobs | submit login

Awesome find! I was not considering that a promise is executing as soon as it is created, and this is why the implementation still results in parallel execution.

I've gone back to the drawing board, and I've updated my post accordingly with a better solution using reduce. I've also used your demo above as an example and credited you in my article (please let me know if that is not OK, and I will take it down).

Thanks again!




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

Search: