* The clearTimeout method cancels an instantiated Timer previously created * by calling setTimeout. * * @param {NodeJS.Timeout|FastTimer} timeout
(timeout)
| 2578 | setTimeout(callback, delay, arg) { |
| 2579 | return delay <= RESOLUTION_MS ? setTimeout(callback, delay, arg) : new FastTimer(callback, delay, arg); |
| 2580 | }, |
| 2581 | /** |
| 2582 | * The clearTimeout method cancels an instantiated Timer previously created |
| 2583 | * by calling setTimeout. |
| 2584 | * |
| 2585 | * @param {NodeJS.Timeout|FastTimer} timeout |
| 2586 | */ |
| 2587 | clearTimeout(timeout) { |
| 2588 | if (timeout[kFastTimer]) { |
| 2589 | timeout.clear(); |
no test coverage detected