Script completes without waiting for timeouts it scheduled #60
Labels
help wanted
Extra attention is needed
invalid
This doesn't seem right
question
Further information is requested
Describe the bug
Scripts using timeouts complete execution without waiting for the scheduled timeouts to fire. The expected delayed execution does not happen, and only the synchronous parts of the script run.
To Reproduce
Run the following code:
Expected output:
Actual output:
Expected behavior
The script should wait for the scheduled timeout before completing, allowing "Hello 2" to be logged after 1 second.
Desktop (please complete the following information):
Node 22.7.0, Windows 10
The text was updated successfully, but these errors were encountered: