title: Promise.all consumes all my RAM
body: <p>I've got a rate limiter for an API I am using which allows 20 requests per second. All requests are promise based and the promise will be resolved with the API data once there is a response.</p>
  
  <p><strong>The problem:</strong></p>
  
  <p>I setup a promiseArray which contains 58k promises all waiting for a response. So slowly the memory is increasing until I am running out of memory. In my specific situation I don't need to pass the resolved data to my <code>then()</code> and the data is eating up all my RAM.</p>
  
  <p><strong>The code:</strong></p>
  
  <pre><code>  }).then(() =&gt; {
      // 2. Crawl for all clanprofiles from these leaderboards
      const promiseArray = []
      for (let i = 0; i &lt; clanTags.length; i++) {
        // Resolved data from getClanProfile() is eating up all my RAM
        const p = backgroundScheduler.getClanProfile(clanTags[i], true)
        promiseArray.push(p)
      }
      return Promise.all(promiseArray)
    }).then(() =&gt; {
  </code></pre>
  
  <p>So is there a way to await until the promiseArray is resolved without needing the resolved data?</p>