Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0603a92

Browse filesBrowse files
Fishrock123rvagg
authored andcommitted
doc: fix two doc errors in stream and process
`process.stdout` always blocks as of 20176a9 `WritableState.buffer` is `getBuffer()` as of 9158666 PR-URL: #2549 Reviewed-By: Alexis Campailla <orangemocha@nodejs.org> Reviewed-By: Evan Lucas <evanlucas@me.com>
1 parent 1474f29 commit 0603a92
Copy full SHA for 0603a92

File tree

Expand file treeCollapse file tree

2 files changed

+3
-9
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-9
lines changed
Open diff view settings
Collapse file

‎doc/api/process.markdown‎

Copy file name to clipboardExpand all lines: doc/api/process.markdown
+1-7Lines changed: 1 addition & 7 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,7 @@ For example, a `console.log` equivalent could look like this:
246246

247247
`process.stderr` and `process.stdout` are unlike other streams in io.js in
248248
that they cannot be closed (`end()` will throw), they never emit the `finish`
249-
event and that writes are usually blocking.
250-
251-
- They are blocking in the case that they refer to regular files or TTY file
252-
descriptors.
253-
- In the case they refer to pipes:
254-
- They are blocking in Linux/Unix.
255-
- They are non-blocking like other streams in Windows.
249+
event and that writes are always blocking.
256250

257251
To check if io.js is being run in a TTY context, read the `isTTY` property
258252
on `process.stderr`, `process.stdout`, or `process.stdin`:
Collapse file

‎doc/api/stream.markdown‎

Copy file name to clipboardExpand all lines: doc/api/stream.markdown
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1440,8 +1440,8 @@ var transform = new stream.Transform({
14401440
<!--type=misc-->
14411441

14421442
Both Writable and Readable streams will buffer data on an internal
1443-
object called `_writableState.buffer` or `_readableState.buffer`,
1444-
respectively.
1443+
object which can be retrieved from `_writableState.getBuffer()` or
1444+
`_readableState.buffer`, respectively.
14451445

14461446
The amount of data that will potentially be buffered depends on the
14471447
`highWaterMark` option which is passed into the constructor.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.