Event Loop & Microtasks

How does the event loop handle async generators?
async function* asyncGenerator() {
  await Promise.resolve();
  yield 'A';
  await Promise.resolve();
  yield 'B';
}

(async () => {
  for await (const val of asyncGenerator()) {
    console.log(val);
  }
})();
Next Question (11/20)