Files
node/lib
isaacs 993bb93e0a streams: Don't emit 'end' until read() past EOF
This prevents the following sort of thing from being confusing:

```javascript
stream.on('data', function() { console.error('got data'); });
stream.pause(); // stop reading

// turns out no data is available
stream.push(null);

// Hand the stream to someone else, who does stuff...
setTimeout(function() {
  // too late! 'end' is already emitted!
  stream.on('end', function() { console.error('got end'); });
});
```

With this change, the `end` event is not emitted until you call `read()`
*past* the EOF null.  So, a paused stream will not swallow the `end`
event and emit it before you `resume()` the stream.
2013-07-25 13:14:49 -07:00
..
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2011-03-14 17:37:05 -07:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2011-03-14 17:37:05 -07:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2011-03-14 17:37:05 -07:00
2013-07-24 21:49:35 +02:00
2013-07-09 22:31:11 -07:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-03-28 13:19:08 -07:00
2013-07-24 21:49:35 +02:00
2013-06-20 13:02:53 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2012-06-28 10:14:03 -07:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00
2013-07-24 21:49:35 +02:00