.1 0 0 0-3.77 16.6c5.86 17.2 9.04 35 9.69 52.73.5 13.9 17.45 20.44 27.29 10.6l37.1-37.1c59.28-59.26 59.28-155.7 0-214.96z"/>
      </svg></a> </h2>
<section aria-labelledby="toc_why-is-the-run-loop-useful">
<p>Very often, batching similar work has benefits.
Web browsers do something quite similar by batching changes to the DOM.</p>
<p>Consider the following HTML snippet:</p>
<pre class="language-html line-numbers"><code class="html language-html"><span class="token tag"><span class="token tag"><span class="