ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/README
(Generate patch)

Comparing AnyEvent/README (file contents):
Revision 1.36 by root, Fri Mar 27 10:49:50 2009 UTC vs.
Revision 1.37 by root, Mon Apr 20 14:34:18 2009 UTC

313 313
314 In either case, if you care (and in most cases, you don't), then you 314 In either case, if you care (and in most cases, you don't), then you
315 can get whatever behaviour you want with any event loop, by taking 315 can get whatever behaviour you want with any event loop, by taking
316 the difference between "AnyEvent->time" and "AnyEvent->now" into 316 the difference between "AnyEvent->time" and "AnyEvent->now" into
317 account. 317 account.
318
319 AnyEvent->now_update
320 Some event loops (such as EV or AnyEvent::Impl::Perl) cache the
321 current time for each loop iteration (see the discussion of
322 AnyEvent->now, above).
323
324 When a callback runs for a long time (or when the process sleeps),
325 then this "current" time will differ substantially from the real
326 time, which might affect timers and time-outs.
327
328 When this is the case, you can call this method, which will update
329 the event loop's idea of "current time".
330
331 Note that updating the time *might* cause some events to be handled.
318 332
319 SIGNAL WATCHERS 333 SIGNAL WATCHERS
320 You can watch for signals using a signal watcher, "signal" is the signal 334 You can watch for signals using a signal watcher, "signal" is the signal
321 *name* in uppercase and without any "SIG" prefix, "cb" is the Perl 335 *name* in uppercase and without any "SIG" prefix, "cb" is the Perl
322 callback to be invoked whenever a signal occurs. 336 callback to be invoked whenever a signal occurs.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines