… | |
… | |
36 | |
36 | |
37 | use Coro::State; |
37 | use Coro::State; |
38 | |
38 | |
39 | use base Exporter; |
39 | use base Exporter; |
40 | |
40 | |
41 | $VERSION = 0.52; |
41 | $VERSION = 0.65; |
42 | |
42 | |
43 | @EXPORT = qw(async cede schedule terminate current); |
43 | @EXPORT = qw(async cede schedule terminate current); |
44 | %EXPORT_TAGS = ( |
44 | %EXPORT_TAGS = ( |
45 | prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)], |
45 | prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)], |
46 | ); |
46 | ); |
… | |
… | |
75 | }; |
75 | }; |
76 | } |
76 | } |
77 | |
77 | |
78 | } |
78 | } |
79 | |
79 | |
|
|
80 | =over 4 |
|
|
81 | |
80 | =item $main |
82 | =item $main |
81 | |
83 | |
82 | This coroutine represents the main program. |
84 | This coroutine represents the main program. |
83 | |
85 | |
84 | =cut |
86 | =cut |
… | |
… | |
134 | } |
136 | } |
135 | }; |
137 | }; |
136 | |
138 | |
137 | # static methods. not really. |
139 | # static methods. not really. |
138 | |
140 | |
|
|
141 | =back |
|
|
142 | |
139 | =head2 STATIC METHODS |
143 | =head2 STATIC METHODS |
140 | |
144 | |
141 | Static methods are actually functions that operate on the current process only. |
145 | Static methods are actually functions that operate on the current process only. |
142 | |
146 | |
143 | =over 4 |
147 | =over 4 |