-
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
stream: finished depends on internal API #28813
Comments
+1 to
I'm -1 to this change unless it's highly motivated. These things are always going to cause trouble. |
This has been sorted |
Yup, this is a horrible change that is causing trouble and means that my code will still have to rely on FYI, I use it to avoid calling |
Currently the implementation of
finished
/eos
depends on internal streams API's which means that there is currently no proper way to implement "streamlike" objects that are compatible.We've improved the situation with
writableFinished
but there are still a lot of internal properties that need to be accessed for proper function. Currently e.g.OutgoingMessage
has some limitations in regards to this (e.g. #28748 won't work).I think what needs to be added to the streams API is:
readableEnded
Also, I think
readableEnded
/writableFinished
should be changed so that it becomes true after'end'
/'finish'
has been emitted (not like it is today where it is set before).The text was updated successfully, but these errors were encountered: