Acho que não...<div>Tinha o teor desse artigo: <a href="http://blog.64p.org/entry/20090630/1246324092">http://blog.64p.org/entry/20090630/1246324092</a> (repare na frase "Coro is black magic.") :/</div><div>Mas creio que achei outro tipo de resposta para o que estava procurando, "time-sliced multitasking using interval timers":</div>

<div><br></div><div><div># "timeslice" the given block</div><div>sub timeslice(&) {</div><div>   use Time::HiRes ();</div><div> </div><div>   Coro::on_enter {</div><div>      # on entering the thread, we set an VTALRM handler to cede</div>

<div>      $SIG{VTALRM} = sub { cede };</div><div>      # and then start the interval timer</div><div>      Time::HiRes::setitimer &Time::HiRes::ITIMER_VIRTUAL, 0.01, 0.01;</div><div>   }; </div><div>   Coro::on_leave {</div>

<div>      # on leaving the thread, we stop the interval timer again</div><div>      Time::HiRes::setitimer &Time::HiRes::ITIMER_VIRTUAL, 0, 0;</div><div>   }; </div><div> </div><div>   &{+shift};</div><div>}  </div>

<div> </div><div># use like this:</div><div>timeslice {</div><div>   # The following is an endless loop that would normally</div><div>   # monopolise the process. Since it runs in a timesliced</div><div>   # environment, it will regularly cede to other threads.</div>

<div>   while () { }</div><div>};</div><div><br></div>ABS()<br><br>
<br><br><div class="gmail_quote">2012/8/15 breno <span dir="ltr"><<a href="mailto:breno@rio.pm.org" target="_blank">breno@rio.pm.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Vc se refere a isso?<br>
<br>
<a href="https://metacpan.org/module/Coro::State#MODEL" target="_blank">https://metacpan.org/module/Coro::State#MODEL</a><br>
<br>
[]s<br>
<br>
-b<br>
<br>
2012/8/14 Stanislaw Pusep <<a href="mailto:creaktive@gmail.com">creaktive@gmail.com</a>>:<br>
<div><div class="h5">> Pessoas, eu lembro como se fosse ontem que em algum lugar da documentação<br>
> (<a href="https://metacpan.org/module/Coro" target="_blank">https://metacpan.org/module/Coro</a>) havia uma referência descrevendo como o<br>
> Coro foi implementado... Não estou conseguindo mais achar :(<br>
> Alguém lembra/sabe?<br>
><br>
> ABS()<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Rio-pm mailing list<br>
> <a href="mailto:Rio-pm@pm.org">Rio-pm@pm.org</a><br>
> <a href="http://mail.pm.org/mailman/listinfo/rio-pm" target="_blank">http://mail.pm.org/mailman/listinfo/rio-pm</a><br>
_______________________________________________<br>
Rio-pm mailing list<br>
<a href="mailto:Rio-pm@pm.org">Rio-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/rio-pm" target="_blank">http://mail.pm.org/mailman/listinfo/rio-pm</a><br>
</blockquote></div><br></div>