… | |
… | |
391 | $self->{_status} = [@_]; |
391 | $self->{_status} = [@_]; |
392 | $self->_cancel; |
392 | $self->_cancel; |
393 | } |
393 | } |
394 | } |
394 | } |
395 | |
395 | |
|
|
396 | =item $coroutine->schedule_to |
|
|
397 | |
|
|
398 | Puts the current coroutine to sleep (like C<Coro::schedule>), but instead |
|
|
399 | of continuing with the next coro from the ready queue, always switch to |
|
|
400 | the given coroutine object (regardless of priority etc.). The readyness |
|
|
401 | state of that coroutine isn't changed. |
|
|
402 | |
|
|
403 | This is an advanced method for special cases - I'd love to hear about any |
|
|
404 | uses for this one. |
|
|
405 | |
|
|
406 | =item $coroutine->cede_to |
|
|
407 | |
|
|
408 | Like C<schedule_to>, but puts the current coroutine into the ready |
|
|
409 | queue. This has the effect of temporarily switching to the given |
|
|
410 | coroutine, and continuing some time later. |
|
|
411 | |
|
|
412 | This is an advanced method for special cases - I'd love to hear about any |
|
|
413 | uses for this one. |
|
|
414 | |
396 | =item $coroutine->throw ([$scalar]) |
415 | =item $coroutine->throw ([$scalar]) |
397 | |
416 | |
398 | If C<$throw> is specified and defined, it will be thrown as an exception |
417 | If C<$throw> is specified and defined, it will be thrown as an exception |
399 | inside the coroutine at the next convenient point in time. Otherwise |
418 | inside the coroutine at the next convenient point in time. Otherwise |
400 | clears the exception object. |
419 | clears the exception object. |