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 1303e35

Browse filesBrowse files
ImHypetargos
authored andcommitted
doc: clarify description of readable.push() method
PR-URL: #29687 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent d258e02 commit 1303e35
Copy full SHA for 1303e35

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2149,8 +2149,8 @@ class SourceWrapper extends Readable {
21492149
}
21502150
```
21512151

2152-
The `readable.push()` method is intended be called only by `Readable`
2153-
implementers, and only from within the `readable._read()` method.
2152+
The `readable.push()` method is used to push the content
2153+
into the internal buffer. It can be driven by the `readable._read()` method.
21542154

21552155
For streams not operating in object mode, if the `chunk` parameter of
21562156
`readable.push()` is `undefined`, it will be treated as empty string or

0 commit comments

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