node/test
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
..
addons test: modify async native test.js to test for #4820 2013-02-21 13:14:07 -08:00
disabled Merge remote-tracking branch 'ry/v0.8' into master 2013-02-18 10:21:08 -08:00
fixtures test: Fix debugger repl tests 2013-02-26 16:49:17 -08:00
gc test: use the debug build of node-weak when necessary 2012-06-13 17:58:28 -07:00
internet test: Move test-net-connect-timeout to test/internet 2013-02-26 17:39:04 -08:00
message process: separate nextTick domain logic 2013-02-27 16:37:10 -08:00
pummel net: omit superfluous 'connect' event 2013-03-01 02:09:36 +01:00
simple stream: There is no _read cb, there is only push 2013-02-28 17:38:17 -08:00
common.js lib, src: remove errno global 2013-02-28 23:11:47 +01:00