… | |
… | |
113 | terminated. |
113 | terminated. |
114 | |
114 | |
115 | =cut |
115 | =cut |
116 | |
116 | |
117 | sub async(&) { |
117 | sub async(&) { |
118 | (new Coro $_[0])->ready; |
118 | my $pid = new Coro $_[0]; |
|
|
119 | $pid->ready; |
|
|
120 | $pid; |
119 | } |
121 | } |
120 | |
122 | |
121 | =item schedule |
123 | =item schedule |
122 | |
124 | |
123 | Calls the scheduler. Please note that the current process will not be put |
125 | Calls the scheduler. Please note that the current process will not be put |
… | |
… | |
199 | 1; |
201 | 1; |
200 | |
202 | |
201 | =head1 SEE ALSO |
203 | =head1 SEE ALSO |
202 | |
204 | |
203 | L<Coro::Channel>, L<Coro::Cont>, L<Coro::Specific>, L<Coro::Semaphore>, |
205 | L<Coro::Channel>, L<Coro::Cont>, L<Coro::Specific>, L<Coro::Semaphore>, |
204 | L<Coro::Signal>, L<Coro::State>. |
206 | L<Coro::Signal>, L<Coro::State>, L<Coro::Event>. |
205 | |
207 | |
206 | =head1 AUTHOR |
208 | =head1 AUTHOR |
207 | |
209 | |
208 | Marc Lehmann <pcg@goof.com> |
210 | Marc Lehmann <pcg@goof.com> |
209 | http://www.goof.com/pcg/marc/ |
211 | http://www.goof.com/pcg/marc/ |