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

Comparing EV/README (file contents):
Revision 1.43 by root, Sat Jun 20 11:11:01 2015 UTC vs.
Revision 1.44 by root, Mon Jul 13 19:47:53 2015 UTC

501 the same time. 501 the same time.
502 502
503 The "timer_ns" variant doesn't start (activate) the newly created 503 The "timer_ns" variant doesn't start (activate) the newly created
504 watcher. 504 watcher.
505 505
506 $w->set ($after, $repeat) 506 $w->set ($after, $repeat = 0)
507 Reconfigures the watcher, see the constructor above for details. Can 507 Reconfigures the watcher, see the constructor above for details. Can
508 be called at any time. 508 be called at any time.
509 509
510 $w->again 510 $w->again
511 $w->again ($repeat)
511 Similar to the "start" method, but has special semantics for 512 Similar to the "start" method, but has special semantics for
512 repeating timers: 513 repeating timers:
513 514
514 If the timer is active and non-repeating, it will be stopped. 515 If the timer is active and non-repeating, it will be stopped.
515 516
523 524
524 This behaviour is useful when you have a timeout for some IO 525 This behaviour is useful when you have a timeout for some IO
525 operation. You create a timer object with the same value for $after 526 operation. You create a timer object with the same value for $after
526 and $repeat, and then, in the read/write watcher, run the "again" 527 and $repeat, and then, in the read/write watcher, run the "again"
527 method on the timeout. 528 method on the timeout.
529
530 If called with a $repeat argument, then it uses this a timer repeat
531 value.
532
533 $after = $w->remaining
534 Calculates and returns the remaining time till the timer will fire.
528 535
529 PERIODIC WATCHERS - to cron or not to cron? 536 PERIODIC WATCHERS - to cron or not to cron?
530 $w = EV::periodic $at, $interval, $reschedule_cb, $callback 537 $w = EV::periodic $at, $interval, $reschedule_cb, $callback
531 $w = EV::periodic_ns $at, $interval, $reschedule_cb, $callback 538 $w = EV::periodic_ns $at, $interval, $reschedule_cb, $callback
532 $w = $loop->periodic ($at, $interval, $reschedule_cb, $callback) 539 $w = $loop->periodic ($at, $interval, $reschedule_cb, $callback)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines