summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-05-31 16:00:24 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2018-08-22 01:00:27 +0200
commit36468ca92862f2e1bc086be7e5e12ec8e012982b (patch)
tree5a2be2bec63ce0695f927bd20ff2d6deb0c9da9e /src/env.h
parent9dae0ae22b62a7f6a3ebf7e5efbfac9611d5ce04 (diff)
downloadandroid-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