title: Express Node accept request after running initial code
body: <p>I have an app with express and socket.io. I make request to 3d party api and store the response data in array:</p>
  
  <pre><code>var codes = ['a', 'b', 'c']
  var results=[]
  
  var calls = codes.map(code=&gt;{
      var url = 'http://example.com?code='+code           
      return axios.get(url);
  });                     
  
  axios.all(calls)
  .then(function(data){
      results=data
  })
  </code></pre>
  
  <p>But I use results array in my routes - I send it to all the user in response.
  How to make sure that after restart - the user will not get an empty array?</p>