… | … | ||
---|---|---|---|
198 | } 1,2,3,4; | 198 | } 1,2,3,4; |
199 | 199 | ||
200 | =cut | 200 | =cut |
201 | 201 | ||
202 | sub async(&@) { | 202 | sub async(&@) { |
203 | my $pid = new Coro @_; | 203 | my $coro = new Coro @_; |
204 | $pid->ready; | 204 | $coro->ready; |
205 | $pid | 205 | $coro |
206 | } | 206 | } |
207 | 207 | ||
208 | =item schedule | 208 | =item schedule |
209 | 209 | ||
210 | Calls the scheduler. Please note that the current coroutine will not be put | 210 | Calls the scheduler. Please note that the current coroutine will not be put |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |