… | |
… | |
328 | |
328 | |
329 | our $idle; # idle handler |
329 | our $idle; # idle handler |
330 | our $main; # main coro |
330 | our $main; # main coro |
331 | our $current; # current coro |
331 | our $current; # current coro |
332 | |
332 | |
333 | our $VERSION = 5.26; |
333 | our $VERSION = 5.372; |
334 | |
334 | |
335 | our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub rouse_cb rouse_wait); |
335 | our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub rouse_cb rouse_wait); |
336 | our %EXPORT_TAGS = ( |
336 | our %EXPORT_TAGS = ( |
337 | prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)], |
337 | prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)], |
338 | ); |
338 | ); |
… | |
… | |
728 | not ever be scheduled. |
728 | not ever be scheduled. |
729 | |
729 | |
730 | =item $coro->cancel (arg...) |
730 | =item $coro->cancel (arg...) |
731 | |
731 | |
732 | Terminates the given Coro and makes it return the given arguments as |
732 | Terminates the given Coro and makes it return the given arguments as |
733 | status (default: the empty list). Never returns if the Coro is the |
733 | status (default: an empty list). Never returns if the Coro is the |
734 | current Coro. |
734 | current Coro. |
735 | |
735 | |
736 | =cut |
736 | =cut |
737 | |
737 | |
738 | sub cancel { |
738 | sub cancel { |