… | |
… | |
346 | In this mode $interval and $at are both being ignored. Instead, each time |
346 | In this mode $interval and $at are both being ignored. Instead, each time |
347 | the periodic watcher gets scheduled, the first callback ($reschedule_cb) |
347 | the periodic watcher gets scheduled, the first callback ($reschedule_cb) |
348 | will be called with the watcher as first, and the current time as second |
348 | will be called with the watcher as first, and the current time as second |
349 | argument. |
349 | argument. |
350 | |
350 | |
351 | I<This callback MUST NOT stop or destroy the event watcher, ever.> |
351 | I<This callback MUST NOT stop or destroy this or any other periodic |
|
|
352 | watcher, ever>. If you need to stop it, return 1e30 and stop it |
|
|
353 | afterwards. |
352 | |
354 | |
353 | It must return the next time to trigger, based on the passed time value |
355 | It must return the next time to trigger, based on the passed time value |
354 | (that is, the lowest time value larger than to the second argument). It |
356 | (that is, the lowest time value larger than to the second argument). It |
355 | will usually be called just before the callback will be triggered, but |
357 | will usually be called just before the callback will be triggered, but |
356 | might be called at other times, too. |
358 | might be called at other times, too. |