-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
setTimeout callback executed before delay elapses #10154
Copy link
Copy link
Closed
Labels
blockedPRs that are blocked by other issues or PRs.PRs that are blocked by other issues or PRs.libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.questionIssues asking questions about Node.js.Issues asking questions about Node.js.timersIssues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().Issues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().
Description
Activity
Metadata
Metadata
Assignees
Labels
blockedPRs that are blocked by other issues or PRs.PRs that are blocked by other issues or PRs.libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.questionIssues asking questions about Node.js.Issues asking questions about Node.js.timersIssues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().Issues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().
When the delay is set to
1, for about 5% of cases the logged time between executingsetTimeout()and the callback execution is0.When the delay value is set to
2, there are no cases where the logged time is less than 2, which is an expected behavior.