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
  • 54,112
  • 10
  • 112
  • 187
Luis Abreu
  • 3,136
  • 4
  • 28
  • 51

0 Answers0