… | |
… | |
57 | |
57 | |
58 | our $idle; # idle handler |
58 | our $idle; # idle handler |
59 | our $main; # main coroutine |
59 | our $main; # main coroutine |
60 | our $current; # current coroutine |
60 | our $current; # current coroutine |
61 | |
61 | |
62 | our $VERSION = '4.46'; |
62 | our $VERSION = '4.51'; |
63 | |
63 | |
64 | our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub); |
64 | our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub); |
65 | our %EXPORT_TAGS = ( |
65 | our %EXPORT_TAGS = ( |
66 | prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)], |
66 | prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)], |
67 | ); |
67 | ); |
… | |
… | |
178 | } |
178 | } |
179 | }; |
179 | }; |
180 | $manager->desc ("[coro manager]"); |
180 | $manager->desc ("[coro manager]"); |
181 | $manager->prio (PRIO_MAX); |
181 | $manager->prio (PRIO_MAX); |
182 | |
182 | |
183 | # static methods. not really. |
|
|
184 | |
|
|
185 | =back |
183 | =back |
186 | |
184 | |
187 | =head2 STATIC METHODS |
185 | =head2 STATIC METHODS |
188 | |
186 | |
189 | Static methods are actually functions that operate on the current coroutine only. |
187 | Static methods are actually functions that operate on the current coroutine only. |
… | |
… | |
339 | } |
337 | } |
340 | } |
338 | } |
341 | |
339 | |
342 | =back |
340 | =back |
343 | |
341 | |
344 | # dynamic methods |
|
|
345 | |
|
|
346 | =head2 COROUTINE METHODS |
342 | =head2 COROUTINE METHODS |
347 | |
343 | |
348 | These are the methods you can call on coroutine objects. |
344 | These are the methods you can call on coroutine objects. |
349 | |
345 | |
350 | =over 4 |
346 | =over 4 |