… | |
… | |
309 | |
309 | |
310 | "Cede" to other coroutines. This function puts the current coroutine into the |
310 | "Cede" to other coroutines. This function puts the current coroutine into the |
311 | ready queue and calls C<schedule>, which has the effect of giving up the |
311 | ready queue and calls C<schedule>, which has the effect of giving up the |
312 | current "timeslice" to other coroutines of the same or higher priority. |
312 | current "timeslice" to other coroutines of the same or higher priority. |
313 | |
313 | |
314 | Returns true if at least one coroutine switch has happened. |
|
|
315 | |
|
|
316 | =item Coro::cede_notself |
314 | =item Coro::cede_notself |
317 | |
315 | |
318 | Works like cede, but is not exported by default and will cede to any |
316 | Works like cede, but is not exported by default and will cede to any |
319 | coroutine, regardless of priority, once. |
317 | coroutine, regardless of priority, once. |
320 | |
|
|
321 | Returns true if at least one coroutine switch has happened. |
|
|
322 | |
318 | |
323 | =item terminate [arg...] |
319 | =item terminate [arg...] |
324 | |
320 | |
325 | Terminates the current coroutine with the given status values (see L<cancel>). |
321 | Terminates the current coroutine with the given status values (see L<cancel>). |
326 | |
322 | |