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 <firstname.lastname@example.org> Reviewed-By: James M Snell <email@example.com> Reviewed-By: Mathias Buus <firstname.lastname@example.org>
- Loading branch information...
Showing with 60 additions and 9 deletions.