in reply to Coro, EV and cede

The Coro::AnyEvent module has a few numbers to implement common forms of "waiting for something", for example Coro::AnyEvent::poll looks as if it were the function you want. Coro only makes thread switches when it must, and will only poll for events when it must - as long as you have a thread to run it will run that one.

Replies are listed 'Best First'.
Re^2: Coro, EV and cede
by Nick Kostirya (Sexton) on Nov 15, 2011 at 12:54 UTC
    Coro::AnyEvent::poll does not help.
      I was wrong, Coro::AnyEvent::poll really helps. This is the same as sleep(0).