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

Does stream.readable.tee() exist? like ReadableStream.tee() . #43324

Closed
masx200 opened this issue Jun 6, 2022 · 3 comments
Closed

Does stream.readable.tee() exist? like ReadableStream.tee() . #43324

masx200 opened this issue Jun 6, 2022 · 3 comments
Labels
feature request Issues that request new features to be added to Node.js. stale stream Issues and PRs related to the stream subsystem.

Comments

@masx200
Copy link
Contributor

masx200 commented Jun 6, 2022

What is the problem this feature will solve?

Does stream.readable.tee() exist? like ReadableStream.tee() .

https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/tee

https://nodejs.org/dist/latest-v18.x/docs/api/stream.html#class-streamreadable

What is the feature you are proposing to solve the problem?

stream.readable.tee()

const readable = getReadableStreamSomehow();
const [stream1,stream2]=readable.tee();
const streams=[stream1,stream2];
streams.forEach(readable=>{
readable.on('data', (chunk) => {
  console.log(`Received ${chunk.length} bytes of data.`);
});

})

What alternatives have you considered?

ReadableStream.tee()

@masx200 masx200 added the feature request Issues that request new features to be added to Node.js. label Jun 6, 2022
@VoltrexKeyva VoltrexKeyva added the stream Issues and PRs related to the stream subsystem. label Jun 6, 2022
@masx200
Copy link
Contributor Author

masx200 commented Jun 21, 2022

#43325

@github-actions
Copy link
Contributor

There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.

For more information on how the project manages feature requests, please consult the feature request management document.

@github-actions github-actions bot added the stale label Dec 19, 2022
@github-actions
Copy link
Contributor

There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.

For more information on how the project manages feature requests, please consult the feature request management document.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js. stale stream Issues and PRs related to the stream subsystem.
Projects
Development

No branches or pull requests

2 participants