-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
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
Promise version of streams.finished
not calling clean up
#44556
Comments
streams.finished
not calling clean up
cc @nodejs/streams |
@ronag wdyt? |
Would you like to send a PR? |
Yeh can do, I've never contributed to this repo before - would tests or anything be needed or will just the above change be ok? |
Test will be needed. |
Note that changing this semver-major. I would prefer if we added an option to the promisified version, .e.g |
Hey 👋 If our friend @rhodgkins finally doesn't jump on this. I would like to jump :) Cheers |
Go for it! |
Yep sorry I'm not going to be able to do this any time soon so thanks in advance if you get time to do it! 🎉 |
ref: nodejs#44556 src: add autoCleanup logic to finished docs: add autoCleanup true as default
It seems that @ntedgi already jump into. I'll take another one 🤓 |
ref: nodejs#44556 src: add autoCleanup logic to finished docs: add autoCleanup true as default
add autoCleanup logic to finished, update docs add autoCleanup false as default ref: nodejs#44556
implement autoCleanup logic. update docs add autoCleanup description ref: nodejs#44556
implement autoCleanup logic. update docs add autoCleanup description ref: #44556 PR-URL: #44862 Refs: #44556 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
Fixed by #44862 |
implement autoCleanup logic. update docs add autoCleanup description ref: #44556 PR-URL: #44862 Refs: #44556 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
implement autoCleanup logic. update docs add autoCleanup description ref: #44556 PR-URL: #44862 Refs: #44556 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
implement autoCleanup logic. update docs add autoCleanup description ref: #44556 PR-URL: #44862 Refs: #44556 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
implement autoCleanup logic. update docs add autoCleanup description ref: #44556 PR-URL: #44862 Refs: #44556 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
implement autoCleanup logic. update docs add autoCleanup description ref: #44556 PR-URL: #44862 Refs: #44556 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
node/lib/internal/streams/end-of-stream.js
Lines 245 to 255 in f0cf100
Should the promise version of
finished
call the clean up function returned from the callback version?So something like:
The text was updated successfully, but these errors were encountered: