ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Event/Event.pm
(Generate patch)

Comparing Coro/Event/Event.pm (file contents):
Revision 1.8 by root, Sun Oct 28 17:00:09 2001 UTC vs.
Revision 1.9 by root, Tue Nov 27 02:59:37 2001 UTC

177 Event::one_event; # inefficient 177 Event::one_event; # inefficient
178 Coro::schedule; 178 Coro::schedule;
179 } 179 }
180}; 180};
181 181
182# provide hooks for Coro::Timer
183
184package Coro::Timer;
185
186unless ($override) {
187 $override = 1;
188 *_new_timer = sub {
189 Event->timer(at => $_[0], cb => $_[1]);
190 };
191}
192
1821; 1931;
183 194
184=head1 AUTHOR 195=head1 AUTHOR
185 196
186 Marc Lehmann <pcg@goof.com> 197 Marc Lehmann <pcg@goof.com>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines