Files
node/lib
isaacs 88644eaa2d stream: There is no _read cb, there is only push
This makes it so that `stream.push(chunk)` is the only way to signal the
end of reading, removing the confusing disparity between the
callback-style _read method, and the fact that most real-world streams
do not have a 1:1 corollation between the "please give me data" event,
and the actual arrival of a chunk of data.

It is still possible, of course, to implement a `CallbackReadable` on
top of this.  Simply provide a method like this as the callback:

    function readCallback(er, chunk) {
      if (er)
        stream.emit('error', er);
      else
        stream.push(chunk);
    }

However, *only* fs streams actually would behave in this way, so it
makes not a lot of sense to make TCP, TLS, HTTP, and all the rest have
to bend into this uncomfortable paradigm.
2013-02-28 17:38:17 -08:00
..
2011-03-14 17:37:05 -07:00
2013-02-20 20:34:34 +01:00
2013-02-28 23:11:47 +01:00
2013-01-28 22:12:21 +01:00
2011-03-14 17:37:05 -07:00
2013-02-28 23:11:47 +01:00
2013-02-28 23:11:47 +01:00
2011-03-14 17:37:05 -07:00
2013-02-22 16:30:27 -08:00
2013-01-16 16:53:11 +01:00
2012-06-19 14:07:48 -07:00
2013-01-29 23:57:23 -08:00
2012-06-28 10:14:03 -07:00
2013-02-28 23:11:47 +01:00
2012-03-03 23:48:57 -08:00
2013-02-21 15:23:18 -08:00