title: forEach is running the request when coded to wait
body: <p>Sorry if it was worded badly, but im having an issue of, Im trying to calculate the amount of users in my db (adding them up per value), and after fetching the users with a forEach(), Im doing a wait(10000) [10 seconds], and it seems to be just not waiting.</p>
  <pre class="lang-js prettyprint-override"><code>let totalmembers = 0
  function wait(ms) {
    var start = new Date().getTime();
    var end = start;
    while (end &lt; start + ms) {
      end = new Date().getTime();
    }
  }
  
  client.diskey.forEach(async m =&gt; {
  if(client.group.get(m) === null) return message.channel.send(&quot;not linked&quot;)
  console.log(&quot;finished waiting&quot;)
  await axios.get(&quot;https://groups.roblox.com/v1/groups/&quot; + Number(client.group.get(m))).then(async gc =&gt; {
  
      await message.channel.send((gc.data.name + &quot; : &quot; + gc.data.memberCount + &quot; : &quot;))
      
    totalmembers = totalmembers + gc.data.memberCount
  
  
  console.log(totalmembers)
  wait(10000)
  console.log(&quot;waiting&quot;)
  await message.channel.send(totalmembers)
  })
  })
  
  }
  </code></pre>
  <p>Any help appreciated.</p>
  <p><a href="https://i.stack.imgur.com/l7jcO.png" rel="nofollow noreferrer">Console</a></p>