ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro.pm
(Generate patch)

Comparing Coro/Coro.pm (file contents):
Revision 1.224 by root, Wed Nov 19 05:52:42 2008 UTC vs.
Revision 1.225 by root, Wed Nov 19 15:29:57 2008 UTC

371See C<async> and C<Coro::State::new> for additional info about the 371See C<async> and C<Coro::State::new> for additional info about the
372coroutine environment. 372coroutine environment.
373 373
374=cut 374=cut
375 375
376sub _run_coro { 376sub _terminate {
377 terminate &{+shift}; 377 terminate &{+shift};
378}
379
380sub new {
381 my $class = shift;
382
383 $class->SUPER::new (\&_run_coro, @_)
384} 378}
385 379
386=item $success = $coroutine->ready 380=item $success = $coroutine->ready
387 381
388Put the given coroutine into the end of its ready queue (there is one 382Put the given coroutine into the end of its ready queue (there is one

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines