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

Implement Node.js stream destroy w/ interruptWhen #3322

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

armanbilge
Copy link
Member

@armanbilge armanbilge commented Oct 20, 2023

A Node.js stream can be destroyed with or without an error.

Previously when converting an fs2.Stream to a Node.js stream, destruction-with-no-error was handled by raising a special StreamDestroyedException. Instead, we should handle it as ordinary interruption via interruptWhen.

h/t @kubukoz for reporting

@armanbilge armanbilge changed the title Implement Node.js stream destroy w/ interrupt Implement Node.js stream destroy w/ interruptWhen Oct 20, 2023
@mpilquist mpilquist merged commit 62d25fa into typelevel:main Oct 27, 2023
15 checks passed
@kubukoz
Copy link
Member

kubukoz commented Oct 31, 2023

@armanbilge can we have a release of this, please?

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.

3 participants