* The clearTimeout method cancels an instantiated Timer previously created * by calling setTimeout. * * @param {NodeJS.Timeout|FastTimer} timeout
(timeout)
| 2578 | * @param {NodeJS.Timeout|FastTimer} timeout |
| 2579 | */ |
| 2580 | clearTimeout(timeout) { |
| 2581 | if (timeout[kFastTimer]) { |
| 2582 | timeout.clear(); |
| 2583 | } else { |
| 2584 | clearTimeout(timeout); |
| 2585 | } |
| 2586 | }, |
| 2587 | /** |
| 2588 | * The setFastTimeout() method sets a fastTimer which executes a function once |
| 2589 | * the timer expires. |
no test coverage detected