Please sign in to comment.
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: #21058 Reviewed-By: Matteo Collina <email@example.com> Reviewed-By: James M Snell <firstname.lastname@example.org> Reviewed-By: Mathias Buus <email@example.com>
- Loading branch information...
Showing with 60 additions and 9 deletions.