We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readable-stream/lib/internal/streams/end-of-stream.js
Lines 245 to 255 in e95c761
Should the promise version of finished call the clean up function returned from the callback version?
finished
So something like:
function finished(stream, opts) { return new Promise((resolve, reject) => { const cleanup = eos(stream, opts, (err) => { cleanup() if (err) { reject(err) } else { resolve() } }) }) }
Also raised in the main repo nodejs/node#44556
The text was updated successfully, but these errors were encountered:
Closed in favor of nodejs/node#44556
Sorry, something went wrong.
No branches or pull requests
readable-stream/lib/internal/streams/end-of-stream.js
Lines 245 to 255 in e95c761
Should the promise version of
finished
call the clean up function returned from the callback version?So something like:
Also raised in the main repo nodejs/node#44556
The text was updated successfully, but these errors were encountered: