<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Coroutine - Page 14 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=coroutine&amp;p=13">1.Previous</a><br />
<a accesskey="3" href="page.php?w=coroutine&amp;p=15">3.Next</a>
</p>
<p>multiple entry points, they differ in coroutines' ability to control where execution continues immediately after they yield, while generators cannot, instead transferring control back to the generator's caller."All of this makes generator functions quite similar to coroutines; they yield multiple times, they have more than one entry point and their execution can be suspended. The only difference is that a generator function cannot control where should the execution continue after it yields; the control is always transferred to the generator's</p><p>
<a accesskey="1" href="page.php?w=coroutine&amp;p=13">1.Previous</a><br />
<a accesskey="3" href="page.php?w=coroutine&amp;p=15">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
