GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: fix two doc errors by Fishrock123 · Pull Request #2549 · nodejs/node

Conversation

@Fishrock123

@Fishrock123 Fishrock123 commented Aug 25, 2015

Copy link
Copy Markdown
Contributor

Found these while digging around.

process.stdout always blocks as of
20176a9

WritableState.buffer is getBuffer() as of
9158666

cc @orangemocha for the first one. I'm unaware of a case where it wouldn't block now.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Fishrock123 Fishrock123 added the doc Issues and PRs related to Node.js documentation. label Aug 25, 2015
@Fishrock123

Fishrock123 commented Aug 25, 2015

Copy link
Copy Markdown
Contributor Author

I guess also cc @chrisdickinson for the latter.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@orangemocha

orangemocha commented Aug 26, 2015

Copy link
Copy Markdown
Contributor

For the first one: I believe that's correct. LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@evanlucas

evanlucas commented Sep 4, 2015

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rvagg
rvagg force-pushed the master branch from 11c25c2 to ba02bd0 Compare September 6, 2015 11:55
@Fishrock123
doc: fix two doc errors in stream and process
892bf65
`process.stdout` always blocks as of
20176a9

`WritableState.buffer` is `getBuffer()` as of
9158666

PR-URL: nodejs#2549
Reviewed-By: Alexis Campailla <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
@Fishrock123
Fishrock123 force-pushed the doc-corrections branch from 3dd7ed3 to 892bf65 Compare September 14, 2015 13:41
@Fishrock123
Fishrock123 merged commit 892bf65 into nodejs:master Sep 14, 2015
@Fishrock123
Fishrock123 deleted the doc-corrections branch September 14, 2015 13:42
Fishrock123 added a commit that referenced this pull request Sep 15, 2015
@Fishrock123
doc: fix two doc errors in stream and process
2d77d03
`process.stdout` always blocks as of
20176a9

`WritableState.buffer` is `getBuffer()` as of
9158666

PR-URL: #2549
Reviewed-By: Alexis Campailla <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
@Fishrock123 Fishrock123 mentioned this pull request Sep 15, 2015
Release proposal: v4.1.0 #2844
Closed
3 of 7 tasks
Fishrock123 added a commit that referenced this pull request Sep 15, 2015
@Fishrock123 @rvagg
doc: fix two doc errors in stream and process
0603a92
`process.stdout` always blocks as of
20176a9

`WritableState.buffer` is `getBuffer()` as of
9158666

PR-URL: #2549
Reviewed-By: Alexis Campailla <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
@rvagg rvagg mentioned this pull request Sep 15, 2015
Release proposal: v3.3.1 #2698
Merged
@rvagg rvagg mentioned this pull request Sep 22, 2015
Release proposal: v4.1.1 #2995
Merged
@tschaub

tschaub commented Sep 23, 2015

Copy link
Copy Markdown

For the first one: I believe that's correct. LGTM

Having the docs say that process.stdout.write() is always blocking makes it sound like writes are synchronous. This doesn't look to be the case (see #2972). Would it make sense to update the docs to say that writes are always asynchronous? This seems more pertinent to users of process.stdout.write() than whether or not it blocks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Fishrock123

Fishrock123 commented Oct 6, 2015

Copy link
Copy Markdown
Contributor Author

Would it make sense to update the docs to say that writes are always asynchronous? This seems more pertinent to users of process.stdout.write() than whether or not it blocks.

Ugh, this is way to confusing.

The call is asynchronous as in the actual write will (likely?) not occur during the function being called. It will later block the process to do the write, however. It is likely to be done in the I/O phase of that tick I believe.

That being said, I think there is some js-side data that is updated synchronously which is normally what you'd be checking from the same process.

cc @bnoordhuis who likely knows how the heck this actually works

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Fishrock123

Fishrock123 commented Oct 7, 2015

Copy link
Copy Markdown
Contributor Author

Refs: #2972 (comment)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

doc Issues and PRs related to Node.js documentation.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@Fishrock123 @orangemocha @evanlucas @tschaub
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.