IIRC Promise.all will run the two responses in parallel, but will not send the first into the map before both are finished.
IIRC Promise.all will run the two responses in parallel, but will not send the first into the map before both are finished.
Which is why I'm a massive fan of Futures from ramda-fantasy[0] instead of Promises for certain tasks!
[0] https://github.com/ramda/ramda-fantasy/blob/master/docs/Futu...
Yeah, I know that. I don't mean .all schedules them to run (e.g. like doing thread.start()), of course they auto start.
By run I mean that inside the .all implementation syncs with you about their completion ("tells you when all of them are settled").
>It depends on your Promises whether they are doing something outside the single threaded event loop or not for them to be parallel or not.
That's not the point though, which was the parent's assertion about whether the first to resolve will escape .all and go into the .map, which I don't think is the case.