… | |
… | |
336 | possible time where C<$time = $at (mod $interval)>, regardless of any time |
336 | possible time where C<$time = $at (mod $interval)>, regardless of any time |
337 | jumps. |
337 | jumps. |
338 | |
338 | |
339 | =item * manual reschedule mode ($reschedule_cb = coderef) |
339 | =item * manual reschedule mode ($reschedule_cb = coderef) |
340 | |
340 | |
341 | In this mode $interval and $at are both being ignored. Instead, each time |
341 | In this mode $interval and $at are both being ignored. Instead, each |
342 | the periodic watcher gets scheduled, the first callback ($reschedule_cb) |
342 | time the periodic watcher gets scheduled, the reschedule callback |
343 | will be called with the watcher as first, and the current time as second |
343 | ($reschedule_cb) will be called with the watcher as first, and the current |
344 | argument. |
344 | time as second argument. |
345 | |
345 | |
346 | I<This callback MUST NOT stop or destroy this or any other periodic |
346 | I<This callback MUST NOT stop or destroy this or any other periodic |
347 | watcher, ever>. If you need to stop it, return 1e30 and stop it |
347 | watcher, ever>. If you need to stop it, return 1e30 and stop it |
348 | afterwards. |
348 | afterwards. |
349 | |
349 | |