mirror of https://github.com/nodejs/node.git
0f8de5e1f9
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. |
||
---|---|---|
.. | ||
about | ||
api | ||
api_assets | ||
blog | ||
community | ||
download | ||
images | ||
logos | ||
blog.html | ||
changelog-foot.html | ||
changelog-head.html | ||
cla.html | ||
favicon.ico | ||
full-white-stripe.jpg | ||
index.html | ||
mac_osx_nodejs_installer_logo.png | ||
node.1 | ||
pipe.css | ||
robots.txt | ||
rss.xml | ||
sh.css | ||
sh_javascript.min.js | ||
sh_main.js | ||
sh_vim-dark.css | ||
template.html | ||
thin-white-stripe.jpg | ||
trademark-policy.pdf | ||
v0.4_announcement.html |