title: Can you continue synchronously after a Promise.All?
body: <p>Lets say I have the following code:</p>
  
  <pre><code>var myData = [];
  
  var future = Promise.All([getPromise1, getPromise2]).then((result)=&gt;{
    var myData = result []
  }).catch((err)=&gt;{
    \\Do something with err
  })
  
  doSomething (myData);
  </code></pre>
  
  <p>Can I do something with myData after it has received the data from promise.all result? Or do I have to handle subsequent code inside of a promises .then().</p>
  
  <p>For Example:</p>
  
  <pre><code>future.then((data)=&gt;{
    doSomething(myData);
  });
  </code></pre>
  
  <p>I feel like I would have to create a bunch of .then()'s in order to keep handling any  type of synchronous code. Although I suppose since myData is the result then any code that uses the data in result should be handled as part of that promise like:</p>
  
  <pre><code>var future = Promise.All([getPromise1, getPromise2]).then((result)=&gt;{
    doSomething(result [])
  }).catch((err)=&gt;{
    \\Do something with err
  })
  </code></pre>
  
  <p>Am I just understanding this all wrong?
  Looking forward to thoughts and opinions!</p>
  
  <p>P.S im working on node.js</p>