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…
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…