Skip to content

fix: scope native serial callbacks with MakeCallback - #243

Open
DragonWork wants to merge 2 commits into
serialport:mainfrom
DragonWork:fix/windows-async-callbacks
Open

fix: scope native serial callbacks with MakeCallback#243
DragonWork wants to merge 2 commits into
serialport:mainfrom
DragonWork:fix/windows-async-callbacks

Conversation

@DragonWork

@DragonWork DragonWork commented Sep 9, 2026

Copy link
Copy Markdown

Use MakeCallback() with an AsyncContext for Unix poller events and Windows read/write completions, including error paths. This prevents stalled nextTick/Promise continuations and preserves async context.

Preserves @Azq2's original commit from #239, followed by explicit async contexts and Windows support. Listener ordering (#240) is unchanged.

Linux/Node 26.8.2: native timing/context check, build, typecheck and 74 existing tests pass (2 skipped). Windows and macOS runtime testing is still needed.

@DragonWork
DragonWork force-pushed the fix/windows-async-callbacks branch from 932084a to 42279d6 Compare September 9, 2026 23:55
@DragonWork DragonWork changed the title fix: deliver Windows serial callbacks with MakeCallback fix: scope native serial callbacks with MakeCallback Sep 9, 2026
@DragonWork
DragonWork force-pushed the fix/windows-async-callbacks branch from 42279d6 to 3fbc715 Compare September 10, 2026 00:12
@Azq2

Azq2 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Project rip :(

@DragonWork

Copy link
Copy Markdown
Author

Maybe someone (or better a group of devs) fork it and maintain the project. Or the original codeowner comes back. Let‘s hope for the best.

Comment thread src/poller.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants