* 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 | * Sets the timer's start time to the current time, and reschedules the timer |
| 2538 | * to call its callback at the previously specified duration adjusted to the |
| 2539 | * current time. |
| 2540 | * Using this on a timer that has already called its callback will reactivate |
| 2541 | * the timer. |
| 2542 | * |
| 2543 | * @returns {void} |
| 2544 | */ |
| 2545 | refresh() { |
| 2546 | if (this._state === NOT_IN_LIST) { |
| 2547 | fastTimers.push(this); |
| 2548 | } |
| 2549 | if (!fastNowTimeout || fastTimers.length === 1) { |
no test coverage detected