title: How to use async-await with Promise.all()?
body: <p>At the moment I am using this code below to get the results of several Promises using async await:</p>
  
  <pre><code>let matchday = await createMatchday(2018, 21, [/*9 matches of matchday*/]);
  //Further calculations
  
  async function createMatchday(seasonNr, matchdayNr, matches) {
    let md = new Matchday(seasonNr, matchdayNr, matches);
    await md.getStandings(seasonNr, matchdayNr);
    return md;
  }
  
  class Matchday {
    constructor(seasonNr, matchdayNr, matches) {
      this.seasonNr = seasonNr;
      this.matchdayNr = matchdayNr;
      this.matches = matches;
    }
  
    async getStandings(seasonNr, matchdayNr) {
      let promiseArr = [];
      promiseArr.push(makeHttpRequestTo(`http://externService.com/standings?seasonNr=${seasonNr}&amp;matchdayNr=${matchdayNr}`);
      promiseArr.push(makeHttpRequestTo(`http://externService.com/homestandings?seasonNr=${seasonNr}&amp;matchdayNr=${matchdayNr}`));
      promiseArr.push(makeHttpRequestTo(`http://externService.com/awaystandings?seasonNr=${seasonNr}&amp;matchdayNr=${matchdayNr}`));
      promiseArr.push(makeHttpRequestTo(`http://externService.com/formstandings?seasonNr=${seasonNr}&amp;matchdayNr=${matchdayNr}`));
  
      let resulArr = await Promise.all(promiseArr);
      this.standings = resultArr[0];
      this.homeStandings = resultArr[1];
      this.awayStandings = resultArr[2];
      this.formStandings = resultArr[3];
    }
  }
  
  function makeHttpRequest(url) {
    return new Promise((resolve, reject) =&gt; {
      //AJAX httpRequest to url
      resolve(httpRequest.responseText);
    }
  }
  </code></pre>
  
  <p>Is this actually the best way to read the values of several promises where the promises don't need to wait for each other to end but rather work at the same time by using Promise.all() or is there a better way to make e.g. several httpRequests at the same time because this seems quite repetetive?</p>