* The setTimeout() method sets a timer which executes a function once the * timer expires. * @param {Function} callback A function to be executed after the timer * expires. * @param {number} delay The time, in milliseconds that the timer should * wait before the specified function or
(callback, delay, arg)
| 336 | * @returns {NodeJS.Timeout|FastTimer} |
| 337 | */ |
| 338 | setTimeout (callback, delay, arg) { |
| 339 | // If the delay is less than or equal to the RESOLUTION_MS value return a |
| 340 | // native Node.js Timer instance. |
| 341 | return delay <= RESOLUTION_MS |
| 342 | ? setTimeout(callback, delay, arg) |
| 343 | : new FastTimer(callback, delay, arg) |
| 344 | }, |
| 345 | /** |
| 346 | * The clearTimeout method cancels an instantiated Timer previously created |
| 347 | * by calling setTimeout. |
no outgoing calls
no test coverage detected
searching dependent graphs…