… | |
… | |
235 | |
235 | |
236 | "Cede" to other coroutines. This function puts the current coroutine into the |
236 | "Cede" to other coroutines. This function puts the current coroutine into the |
237 | ready queue and calls C<schedule>, which has the effect of giving up the |
237 | ready queue and calls C<schedule>, which has the effect of giving up the |
238 | current "timeslice" to other coroutines of the same or higher priority. |
238 | current "timeslice" to other coroutines of the same or higher priority. |
239 | |
239 | |
|
|
240 | =item Coro::cede_notself |
|
|
241 | |
|
|
242 | Works like cede, but is not exported by default and will cede to any |
|
|
243 | coroutine, regardless of priority, once. |
|
|
244 | |
240 | =item terminate [arg...] |
245 | =item terminate [arg...] |
241 | |
246 | |
242 | Terminates the current coroutine with the given status values (see L<cancel>). |
247 | Terminates the current coroutine with the given status values (see L<cancel>). |
243 | |
248 | |
244 | =cut |
249 | =cut |