Stops execution for the given number of miliseconds. If provided, the callback is called after the timeout. Note: the callback is really just for testing purposes, but can be used instead of awaiting.
await
The number of miliseconds for which to sleep.
Optional
A callback function to call after the timeout.
Stops execution for the given number of miliseconds. If provided, the callback is called after the timeout. Note: the callback is really just for testing purposes, but can be used instead of
awaiting.