out ever giving the Timer callback a chance to execute:</p>
<pre class="language-dart"><code>main() {
  Timer.run(() { print("executed"); });  // Will never be executed.
  foo() {
    scheduleMicrotask(foo);  // Schedules [foo] in front of other events.
  }
  foo();
}
</code></pre>
<h2 id="other-resources">Other resources</h2><ul><li><a href="https://www.dartlang.org/articles/event-loop/">The Event Loop and Dart</a>:
Learn how Dart handles the event queue and microtask queue, so you can write
better asynchr