* Sets the timer's start time to the current time, and reschedules the timer * to call its callback at the previously specified duration adjusted to the * current time. * Using this on a timer that has already called its callback will reactivate * the timer.
()
| 2536 | } |
| 2537 | } |
| 2538 | function refreshTimeout() { |
| 2539 | if (fastNowTimeout) { |
| 2540 | fastNowTimeout.refresh(); |
| 2541 | } else { |
| 2542 | clearTimeout(fastNowTimeout); |
| 2543 | fastNowTimeout = setTimeout(onTick, TICK_MS); |
| 2544 | if (fastNowTimeout.unref) { |
| 2545 | fastNowTimeout.unref(); |
| 2546 | } |
| 2547 | } |
| 2548 | } |
| 2549 | var _a; |
no test coverage detected