<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/node.git/test/simple/test-stream2-readable-wrap-empty.js, branch node-review</title>
<subtitle>github.com: joyent/node.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/'/>
<entry>
<title>stream: Simplify flowing, passive data listening</title>
<updated>2013-07-22T23:17:30+00:00</updated>
<author>
<name>isaacs</name>
<email>i@izs.me</email>
</author>
<published>2013-07-18T01:24:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=0f8de5e1f96a07fa6de837378d29ac5f2719ec60'/>
<id>0f8de5e1f96a07fa6de837378d29ac5f2719ec60</id>
<content type='text'>
Closes #5860

In streams2, there is an "old mode" for compatibility.  Once switched
into this mode, there is no going back.

With this change, there is a "flowing mode" and a "paused mode".  If you
add a data listener, then this will start the flow of data.  However,
hitting the `pause()` method will switch *back* into a non-flowing mode,
where the `read()` method will pull data out.

Every time `read()` returns a data chunk, it also emits a `data` event.
In this way, a passive data listener can be added, and the stream passed
off to some other reader, for use with progress bars and the like.

There is no API change beyond this added flexibility.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #5860

In streams2, there is an "old mode" for compatibility.  Once switched
into this mode, there is no going back.

With this change, there is a "flowing mode" and a "paused mode".  If you
add a data listener, then this will start the flow of data.  However,
hitting the `pause()` method will switch *back* into a non-flowing mode,
where the `read()` method will pull data out.

Every time `read()` returns a data chunk, it also emits a `data` event.
In this way, a passive data listener can be added, and the stream passed
off to some other reader, for use with progress bars and the like.

There is no API change beyond this added flexibility.
</pre>
</div>
</content>
</entry>
<entry>
<title>stream: make Readable.wrap support empty streams</title>
<updated>2013-05-08T18:59:40+00:00</updated>
<author>
<name>Daniel Moore</name>
<email>polaris@northhorizon.net</email>
</author>
<published>2013-05-01T17:46:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=3b6fc600e2270b213450517c1406c26f0935e920'/>
<id>3b6fc600e2270b213450517c1406c26f0935e920</id>
<content type='text'>
This makes Readable.wrap behave properly when the wrapped stream ends
before emitting any data events.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes Readable.wrap behave properly when the wrapped stream ends
before emitting any data events.
</pre>
</div>
</content>
</entry>
</feed>
