title: Why is my infinite loop blocking when it is in an async function?
body: <p>I don't understand how to work with asynchronous functions.</p>
  
  <p>Why does the code below stop the main thread?</p>
  
  <pre><code>async function foo() {
    for (;;) {}
  }
  foo();
  </code></pre>