FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

stream: support dispose in writable by benjamingr · Pull Request #48547 · nodejs/node · GitHub

/ node Public

stream: support dispose in writable - #48547

Merged
nodejs-github-bot merged 2 commits into
mainfrom
add-abortsignal-writable
Jun 15, 2024
Merged

stream: support dispose in writable#48547
nodejs-github-bot merged 2 commits into
mainfrom
add-abortsignal-writable

Conversation

Copy link
Copy Markdown
Member

Add support to Symbol.asyncDispose in writable streams. Additionally add a test for writable, transform and duplex streams (that inherit from readable/writable) to avoid breakage.

cc @nodejs/streams @MoLow @atlowChemi

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/streams

nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jun 25, 2023
benjamingr force-pushed the add-abortsignal-writable branch from f38134b to 63aad0a Compare June 25, 2023 17:16
benjamingr added stream Issues and PRs related to the stream subsystem. request-ci Add this label to start a Jenkins CI on a PR. labels Jun 25, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 25, 2023

This comment was marked as outdated.

atlowChemi left a comment
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

benjamingr added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 25, 2023
Comment thread lib/internal/streams/writable.js Outdated
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 25, 2023

This comment was marked as outdated.

benjamingr added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 25, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 25, 2023

Copy link
Copy Markdown
Collaborator

});
let count = 0;
duplex.on('error', common.mustCall((e) => {
assert.strictEqual(count++, 0); // Ensure not called twice

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

common.mustCall accepts a count argument: common.mustCall(fn, times)

Copy link
Copy Markdown
Collaborator

Comment thread lib/internal/streams/writable.js Outdated
benjamingr added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 29, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 29, 2023

Copy link
Copy Markdown
Collaborator

aduh95 commented May 11, 2024

Copy link
Copy Markdown
Contributor

This needs a rebase.

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

Comment thread lib/internal/streams/writable.js Outdated
Add support to Symbol.asyncDispose in writable streams.
Additionally add a test for writable, transform and duplex streams
who inherit from readable/writable to avoid breakage.

Co-authored-by: Robert Nagy <ronagy@icloud.com>
Co-authored-by: atlowChemi <chemi@atlow.co.il>
atlowChemi force-pushed the add-abortsignal-writable branch from 0ec7691 to 271a702 Compare June 14, 2024 15:20

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

atlowChemi added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 14, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 14, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

atlowChemi added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Jun 15, 2024

Copy link
Copy Markdown
Member

@benjamingr as we discussed, moved this PR forward, would you mind taking a look? 🙂

benjamingr left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM 😅

atlowChemi added the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 15, 2024
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 15, 2024
nodejs-github-bot merged commit 75fe4f3 into main Jun 15, 2024
nodejs-github-bot deleted the add-abortsignal-writable branch June 15, 2024 23:42

Copy link
Copy Markdown
Collaborator

Landed in 75fe4f3

targos pushed a commit that referenced this pull request Jun 20, 2024
Add support to Symbol.asyncDispose in writable streams.
Additionally add a test for writable, transform and duplex streams
who inherit from readable/writable to avoid breakage.

Co-authored-by: Robert Nagy <ronagy@icloud.com>
Co-authored-by: atlowChemi <chemi@atlow.co.il>
PR-URL: #48547
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
soophoo pushed a commit to soophoo/node that referenced this pull request Jun 20, 2024
Add support to Symbol.asyncDispose in writable streams.
Additionally add a test for writable, transform and duplex streams
who inherit from readable/writable to avoid breakage.

Co-authored-by: Robert Nagy <ronagy@icloud.com>
Co-authored-by: atlowChemi <chemi@atlow.co.il>
PR-URL: nodejs#48547
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
marco-ippolito pushed a commit that referenced this pull request Jul 19, 2024
Add support to Symbol.asyncDispose in writable streams.
Additionally add a test for writable, transform and duplex streams
who inherit from readable/writable to avoid breakage.

Co-authored-by: Robert Nagy <ronagy@icloud.com>
Co-authored-by: atlowChemi <chemi@atlow.co.il>
PR-URL: #48547
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL