0

Assume this scenario:

Promise.all( [p1, p2] )
.then( v => {
   //v[0] contains results of p1?
     });

Assuming that both p1 and p2 are resolved, is it safe to assume that v[0] will contain the result for p1 and v[1]will contain the result for p2? Or can I only assume that v will contain 2 values for each promise and cannot assume where each value is?

user2864740
  • 57,407
  • 13
  • 129
  • 202
Luis Abreu
  • 3,566
  • 7
  • 31
  • 55

0 Answers0