--- cvsroot/Coro/Coro.pm 2007/01/05 16:55:01 1.105 +++ cvsroot/Coro/Coro.pm 2007/01/05 18:25:51 1.107 @@ -244,8 +244,8 @@ $current->prio (0); schedule; - } -} + } +} sub async_pool(&@) { # this is also inlined into the unlock_scheduler @@ -289,11 +289,15 @@ ready queue and calls C, which has the effect of giving up the current "timeslice" to other coroutines of the same or higher priority. +Returns true if at least one coroutine switch has happened. + =item Coro::cede_notself Works like cede, but is not exported by default and will cede to any coroutine, regardless of priority, once. +Returns true if at least one coroutine switch has happened. + =item terminate [arg...] Terminates the current coroutine with the given status values (see L).