title: Firebase Database Snapshot ForEach Async Await
body: <p>async/await doesn't seem to work with firebase forEach. This code runs console.log for the first child of the snapshot and then just hangs. Is this a bug or am I missing something?</p>
  
  <pre><code>main()
  async function main() {
    const snap = await root.ref('somepath')
      .once('value')
  
    snap.forEach(async val =&gt; {
      await console.log(val.key)
  
    })
  }
  </code></pre>