Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Node.js Duplex interop #3365

Merged
merged 4 commits into from
Jan 13, 2024

Conversation

armanbilge
Copy link
Member

Following in the steps of #3348, this PR replaces the Dispatcher/Queue/Channel used for Duplex interop with a custom concurrent data structure. Besides the performance benefits of removing indirection, this enables a semantics fix/enhancement: the FS2 upstream will not start until the Node.js downstream signals readiness. AFAIK it's not possible to implement this semantic with a Queue since you cannot receive an (async) signal for readiness, only a signal when an enqueue completes.

@mpilquist mpilquist merged commit 4b5a8a1 into typelevel:main Jan 13, 2024
15 checks passed
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.

2 participants