Skip to content

test: Check promise concurrency without wall-clock timing - #1602

Draft
mrousavy wants to merge 1 commit into
mainfrom
test/promise-concurrency-barrier
Draft

test: Check promise concurrency without wall-clock timing#1602
mrousavy wants to merge 1 commit into
mainfrom
test/promise-concurrency-barrier

Conversation

@mrousavy

@mrousavy mrousavy commented Sep 5, 2026

Copy link
Copy Markdown
Member

The concurrency test previously required two 0.5-second native waits to finish within one second. Scheduling delays can violate that threshold in a correct sanitizer build.

Use the existing callCallbackThatReturnsPromiseVoid API to start two native operations. Each callback returns the same promise, which resolves only after both callbacks have started. A serialized implementation cannot complete, while a slow concurrent implementation can. No native API or generated code changes are needed.

Validation:

  • Workspace packages build; example TypeScript, targeted ESLint, and git diff --check pass.
  • A local probe executes the actual updated assertion: callbacks delayed by 1.1 seconds pass, and a serialized implementation times out. These probes validate the assertion logic; full native iOS/Android execution runs in this PR's Harness CI.

@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
nitro-docs Skipped Skipped Sep 5, 2026 1:02pm UTC

Request Review

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