A function to be executed after the timer expires.
Rest
...args: TArgsOptional
ms: numberThe time, in milliseconds that the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute "immediately", or more accurately, the next event cycle.
Rest
...args: TArgsAdditional arguments which are passed through to the function specified by callback.
The returned timeoutID is a positive integer value which identifies the timer created by the call to setTimeout(). This value can be passed to clearTimeout() to cancel the timeout.
The signature of the override timeout function used to create a new timeout instance, it follows the same signature as the native
setTimeout
API.