efficiency.
</p>
<pre class="mendoza-codeblock"><code data-language="janet"><span class="mdzsyn-comment"># Functions that yield to the event loop will put (fiber/root-fiber) here.</span>
(<span class="mdzsyn-coresym">def</span> <span class="mdzsyn-symbol">pending-tasks</span> @[])

<span class="mdzsyn-comment"># Pseudo-code of the event loop scheduler</span>
(<span class="mdzsyn-coresym">while</span> (<span class="mdzsyn-coresym">not</span> (<span class="mdzsyn-coresym">empty?</span> <span class="mdzsyn-sym