… | |
… | |
291 | EV::periodic will try to run the callback at the next possible time where |
291 | EV::periodic will try to run the callback at the next possible time where |
292 | C<$time = $at (mod $interval)>, regardless of any time jumps. |
292 | C<$time = $at (mod $interval)>, regardless of any time jumps. |
293 | |
293 | |
294 | This periodic timer is based on "wallclock time", that is, if the clock |
294 | This periodic timer is based on "wallclock time", that is, if the clock |
295 | changes (C<ntp>, C<date -s> etc.), then the timer will nevertheless run at |
295 | changes (C<ntp>, C<date -s> etc.), then the timer will nevertheless run at |
296 | the specified time. |
296 | the specified time. This means it will never drift (it might jitter, but |
|
|
297 | it will not drift). |
297 | |
298 | |
298 | The C<periodic_ns> variant doesn't start (activate) the newly created watcher. |
299 | The C<periodic_ns> variant doesn't start (activate) the newly created watcher. |
299 | |
300 | |
300 | =item $w->set ($at, $interval) |
301 | =item $w->set ($at, $interval) |
301 | |
302 | |
… | |
… | |
322 | =item $w->set ($signal) |
323 | =item $w->set ($signal) |
323 | |
324 | |
324 | Reconfigures the watcher, see the constructor above for details. Can be at |
325 | Reconfigures the watcher, see the constructor above for details. Can be at |
325 | any time. |
326 | any time. |
326 | |
327 | |
|
|
328 | =item $current_signum = $w->signal |
|
|
329 | |
|
|
330 | =item $old_signum = $w->signal ($new_signal) |
|
|
331 | |
|
|
332 | Returns the previously set signal (always as a number not name) and |
|
|
333 | optionally set a new one. |
|
|
334 | |
327 | |
335 | |
328 | =item $w = EV::child $pid, $callback |
336 | =item $w = EV::child $pid, $callback |
329 | |
337 | |
330 | =item $w = EV::child_ns $pid, $callback |
338 | =item $w = EV::child_ns $pid, $callback |
331 | |
339 | |
… | |
… | |
344 | |
352 | |
345 | =item $w->set ($pid) |
353 | =item $w->set ($pid) |
346 | |
354 | |
347 | Reconfigures the watcher, see the constructor above for details. Can be at |
355 | Reconfigures the watcher, see the constructor above for details. Can be at |
348 | any time. |
356 | any time. |
|
|
357 | |
|
|
358 | =item $current_pid = $w->pid |
|
|
359 | |
|
|
360 | =item $old_pid = $w->pid ($new_pid) |
|
|
361 | |
|
|
362 | Returns the previously set process id and optionally set a new one. |
349 | |
363 | |
350 | |
364 | |
351 | =item $w = EV::idle $callback |
365 | =item $w = EV::idle $callback |
352 | |
366 | |
353 | =item $w = EV::idle_ns $callback |
367 | =item $w = EV::idle_ns $callback |