… | … | ||
---|---|---|---|
161 | 161 | ||
162 | =cut | 162 | =cut |
163 | 163 | ||
164 | $Coro::idle = new Coro sub { | 164 | $Coro::idle = new Coro sub { |
165 | while () { | 165 | while () { |
166 | Event::one_event; # inefficient | ||
166 | Coro::schedule; | 167 | Coro::schedule; |
167 | Event::one_event; # inefficient | ||
168 | } | 168 | } |
169 | }; | 169 | }; |
170 | 170 | ||
171 | # provide hooks for Coro::Timer | 171 | # provide hooks for Coro::Timer |
172 | 172 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |