-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
doc: general improvements to stream.md copy #6947
Conversation
2. The second section explains the parts of the API that you need to | ||
use if you implement your own custom streams yourself. The API is designed to | ||
make this easy for you to do. | ||
The `stream` module provides the abstract API for working with streaming data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original wording — "A stream is an abstract interface implemented by various objects in Node.js." — seems a bit more accurate here. The builtin module makes it easy to build objects that match the expected interface, and is used by Node internally to create stream objects — but it doesn't provide the abstract API (folks can bring their own streams!)
yeah, I'm thinking a second pass after this would be good. |
fyi, these internal hrefs in stream.md are currently broken in this PR:
(with |
Yeah, I need to go through and update the refs still. Was planning to do that before landing |
@jasnell Sorry, didn’t mean to imply that you wouldn’t :) |
:-) No worries at all! Just wanted to acknowledge the note |
@chrisdickinson ... ping |
@nodejs/streams @nodejs/documentation ... this is a massive update that's difficult to review in Github, but I'd like to get this landed and do a second round of edits. PTAL @mcollina .. does this still LGTY? |
@jasnell sorry to be picky, there is a minor thing on I would use a different term for the modes rather than the states, how about "running"? |
@mcollina ... updated. |
LGTM |
If there are no further objections or comments I will land this on Monday |
Majoring restructuring and update for streams doc. This is the first step of multiple to updating and correcting the streams documentation.
Majoring restructuring and update for streams doc. This is the first step of multiple to updating and correcting the streams documentation. PR-URL: #6947 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Landed in 80ea0c5 |
Majoring restructuring and update for streams doc. This is the first step of multiple to updating and correcting the streams documentation. PR-URL: #6947 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Checklist
Affected core subsystem(s)
doc (stream)
Description of change
General improvements to stream.md. This one is significantly larger and will need a more detailed review.
@nodejs/documentation @nodejs/streams