… | |
… | |
646 | |
646 | |
647 | =item $after = $w->remaining |
647 | =item $after = $w->remaining |
648 | |
648 | |
649 | Calculates and returns the remaining time till the timer will fire. |
649 | Calculates and returns the remaining time till the timer will fire. |
650 | |
650 | |
|
|
651 | =item $old_repeat = $w->reapat ([$new_repeat]) |
|
|
652 | |
|
|
653 | Returns the current value of the repeat attribute and optionally sets a |
|
|
654 | new one. Setting the new one will not restart the watcher - if the watcher |
|
|
655 | is active, the new repeat value is used whenever it expires next. |
|
|
656 | |
651 | =back |
657 | =back |
652 | |
658 | |
653 | |
659 | |
654 | =head3 PERIODIC WATCHERS - to cron or not to cron? |
660 | =head3 PERIODIC WATCHERS - to cron or not to cron? |
655 | |
661 | |
… | |
… | |
747 | Simply stops and starts the watcher again. |
753 | Simply stops and starts the watcher again. |
748 | |
754 | |
749 | =item $time = $w->at |
755 | =item $time = $w->at |
750 | |
756 | |
751 | Return the time that the watcher is expected to trigger next. |
757 | Return the time that the watcher is expected to trigger next. |
|
|
758 | |
|
|
759 | =item $old_offset = $w->offset ([$new_offset]) |
|
|
760 | |
|
|
761 | Returns the current value of the offset attribute and optionally sets a |
|
|
762 | new one. Setting the new one will not restart the watcher - if the watcher |
|
|
763 | is active, the new offset value is used whenever it expires next. |
|
|
764 | |
|
|
765 | =item $old_interval = $w->interval ([$new_interval]) |
|
|
766 | |
|
|
767 | See above, for the interval attribute. |
|
|
768 | |
|
|
769 | =item $old_reschedule_cb = $w->reschedule_cb ([$new_reschedule_xcb]) |
|
|
770 | |
|
|
771 | See above, for the reschedule callback. |
752 | |
772 | |
753 | =back |
773 | =back |
754 | |
774 | |
755 | |
775 | |
756 | =head3 SIGNAL WATCHERS - signal me when a signal gets signalled! |
776 | =head3 SIGNAL WATCHERS - signal me when a signal gets signalled! |