News for hackers. Stuff that matters.
Re:Are you serial, Promise.all? by flattersatz on Friday March 04, 2016 @07:44PM (#11227835)
I believe promise.each is not serial in the way you think it is. Promises do handle only the resolution of certain events. So in your example both statements are executed exactly at the time you set up your array of promises. Promises.each then only ensures that their promise handlers are executed in sequence.

So instead of promises you could create an array of arrow functions and with promise.each execute one after the other.

Re:Are you serial, Promise.all? by jadengore on Saturday March 05, 2016 @09:47PM (#11232245)
I've come up with a similar implementation, I will credit you for inspiring a working solution in my article! Thank you very much!