… | |
… | |
287 | |
287 | |
288 | "Cede" to other coroutines. This function puts the current coroutine into the |
288 | "Cede" to other coroutines. This function puts the current coroutine into the |
289 | ready queue and calls C<schedule>, which has the effect of giving up the |
289 | ready queue and calls C<schedule>, which has the effect of giving up the |
290 | current "timeslice" to other coroutines of the same or higher priority. |
290 | current "timeslice" to other coroutines of the same or higher priority. |
291 | |
291 | |
|
|
292 | Returns true if at least one coroutine switch has happened. |
|
|
293 | |
292 | =item Coro::cede_notself |
294 | =item Coro::cede_notself |
293 | |
295 | |
294 | Works like cede, but is not exported by default and will cede to any |
296 | Works like cede, but is not exported by default and will cede to any |
295 | coroutine, regardless of priority, once. |
297 | coroutine, regardless of priority, once. |
|
|
298 | |
|
|
299 | Returns true if at least one coroutine switch has happened. |
296 | |
300 | |
297 | =item terminate [arg...] |
301 | =item terminate [arg...] |
298 | |
302 | |
299 | Terminates the current coroutine with the given status values (see L<cancel>). |
303 | Terminates the current coroutine with the given status values (see L<cancel>). |
300 | |
304 | |