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

doc: improve doc writable streams: 'finish' event #30889

Closed
wants to merge 1 commit into from
Closed

doc: improve doc writable streams: 'finish' event #30889

wants to merge 1 commit into from

Conversation

dev-script
Copy link
Contributor

@dev-script dev-script commented Dec 10, 2019

doc change for stream.md that 'finish' event should be before
writer.end

fixes: #30759

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

doc change for stream.md that 'finish' event should be before
writer.end

fixes: #30759
@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. stream Issues and PRs related to the stream subsystem. labels Dec 10, 2019
@dev-script
Copy link
Contributor Author

@GrosSacASac please review.

@ronag
Copy link
Member

ronag commented Dec 10, 2019

I'm not sure I understand the purpose here? 'finish' should be emitted in the next tick so the order there shouldn't matter. Is this to make it easier to understand?

@GrosSacASac
Copy link
Contributor

Yes to make it easier to understand and also to make it easier to switch to implementation that don't rely on this hidden gimmick.

@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 13, 2019
@Trott
Copy link
Member

Trott commented Dec 13, 2019

Landed in 08728a1

@Trott Trott closed this Dec 13, 2019
Trott pushed a commit that referenced this pull request Dec 13, 2019
doc change for stream.md that 'finish' event should be before
writer.end

fixes: #30759

PR-URL: #30889
Fixes: #30759
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins pushed a commit that referenced this pull request Dec 17, 2019
doc change for stream.md that 'finish' event should be before
writer.end

fixes: #30759

PR-URL: #30889
Fixes: #30759
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Dec 17, 2019
targos pushed a commit that referenced this pull request Jan 14, 2020
doc change for stream.md that 'finish' event should be before
writer.end

fixes: #30759

PR-URL: #30889
Fixes: #30759
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
BethGriggs pushed a commit that referenced this pull request Feb 6, 2020
doc change for stream.md that 'finish' event should be before
writer.end

fixes: #30759

PR-URL: #30889
Fixes: #30759
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Feb 8, 2020
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 pending requests for changes, and a CI started. doc Issues and PRs related to the documentations. stream Issues and PRs related to the stream subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation writable stream example confusing order
6 participants