--- EV/EV.pm 2015/06/20 11:11:01 1.146 +++ EV/EV.pm 2015/07/13 19:47:53 1.147 @@ -121,7 +121,7 @@ use common::sense; BEGIN { - our $VERSION = '4.20'; + our $VERSION = 4.21; use XSLoader; local $^W = 0; # avoid spurious warning XSLoader::load "EV", $VERSION; @@ -616,13 +616,15 @@ The C variant doesn't start (activate) the newly created watcher. -=item $w->set ($after, $repeat) +=item $w->set ($after, $repeat = 0) Reconfigures the watcher, see the constructor above for details. Can be called at any time. =item $w->again +=item $w->again ($repeat) + Similar to the C method, but has special semantics for repeating timers: If the timer is active and non-repeating, it will be stopped. @@ -639,6 +641,13 @@ C<$repeat>, and then, in the read/write watcher, run the C method on the timeout. +If called with a C<$repeat> argument, then it uses this a timer repeat +value. + +=item $after = $w->remaining + +Calculates and returns the remaining time till the timer will fire. + =back