-
Notifications
You must be signed in to change notification settings - Fork 30k
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
streams: use finished for pump #39203
Conversation
Re-use existing compay logic for pump by using finished.
@nodejs/streams |
); | ||
|
||
writableLike.emit('close'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These test are just for very edge case mostly made up compat scenarios and actually do not align with compat as implemented in finished
. I just removed them,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
s/compay/compat/ in commit message? |
Co-authored-by: Antoine du Hamel <[email protected]>
Landed in 3203396 |
Re-use existing compat logic for pump by using finished. PR-URL: #39203 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
Re-use existing compat logic for pump by using finished. PR-URL: #39203 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
Re-use existing compay logic for pump by using finished. Also cleans up logic a bit.