diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-05-31 16:00:24 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-08-22 01:00:27 +0200 |
commit | 36468ca92862f2e1bc086be7e5e12ec8e012982b (patch) | |
tree | 5a2be2bec63ce0695f927bd20ff2d6deb0c9da9e /src/env.h | |
parent | 9dae0ae22b62a7f6a3ebf7e5efbfac9611d5ce04 (diff) | |
download | android-node-v8-36468ca92862f2e1bc086be7e5e12ec8e012982b.tar.gz android-node-v8-36468ca92862f2e1bc086be7e5e12ec8e012982b.tar.bz2 android-node-v8-36468ca92862f2e1bc086be7e5e12ec8e012982b.zip |
lib: require a callback for end-of-stream
Make the callback mandatory as mostly done in all other Node.js
callback APIs so users explicitly have to decide what to do in error
cases.
This also documents the options for `Stream.finished()`.
When originally implemented it was missed that Stream.finished() has
an optional options object.
PR-URL: https://github.com/nodejs/node/pull/21058
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Mathias Buus <mathiasbuus@gmail.com>
Diffstat (limited to 'src/env.h')
0 files changed, 0 insertions, 0 deletions