Skip to content

Order only timers in the promisified timers test - #1167

Merged
ctate merged 1 commit into
mainfrom
ctate/order-only-timers-284dde
Oct 17, 2026
Merged

ctate merged 1 commit into
mainfrom
ctate/order-only-timers-284dde

Conversation

@ctate

@ctate ctate commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator
  • 5628 compared a 1 ms timer with an immediate, whose order varies with loop timing in Node too (7 of 128 loaded Node runs differed); it now orders three timers, which settle in deadline order.

5628-promisify-timers.ts compared a 1 ms timer with an immediate armed
at the same time. Their order depends on how much time has passed when
the loop reaches its timers phase: once the delay has elapsed, the timer
fires before the check phase. Node prints either order under load. The
test now orders three timers armed together (1, 10 and 30 ms), which
settle in deadline order. The node-types fixture does the same with two
timers.
@vercel

vercel Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
scriptc Ready Ready Preview, v0 Oct 17, 2026 2:37am UTC

@ctate
ctate merged commit 2e96c71 into main Oct 17, 2026
66 checks passed
@ctate
ctate deleted the ctate/order-only-timers-284dde branch October 17, 2026 03:02

This branch was successfully deployed

1 active deployment
Preview — 85690cf2 Deployed Oct 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant