mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
doc: Update to reflect new _read() interface
This commit is contained in:
1 parent
16ddc545bd
commit
13c8bc8917
1 file changed
+2
-1
@@ -169,7 +169,8 @@ source.onend = function() {
|
||||
};
|
||||
|
||||
// _read will be called when the stream wants to pull more data in
|
||||
stream._read = function(size, cb) {
|
||||
// the advisory size argument is ignored in this case.
|
||||
stream._read = function(n) {
|
||||
source.readStart();
|
||||
};
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user