Doeke Norg<p>What if your PHP functions could pause, resume, and remember where they left off, like little self-aware scripts? ⏯️</p><p>That’s what coroutines are for, and PHP gives you two tools to use them: Generators (since 5.5) and Fibers (in PHP 8.1).</p><p>🥔 🔥 I break it all down with real code, plus a hot potato metaphor you won’t forget:<br><a href="https://doeken.org/blog/coroutines-in-php?utm_source=mastodon" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">doeken.org/blog/coroutines-in-</span><span class="invisible">php?utm_source=mastodon</span></a></p><p><a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> <a href="https://phpc.social/tags/Coroutines" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coroutines</span></a> <a href="https://phpc.social/tags/Async" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Async</span></a> <a href="https://phpc.social/tags/Fibers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Fibers</span></a> <a href="https://phpc.social/tags/Generators" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Generators</span></a></p>