mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
doc: Update to reflect new _read() interface
This commit is contained in:
@@ -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