stream: call _final synchronously
- We don't actually have to call
_final
in a nextTick we just need to emit the event asynchronously. Try to call_final
as soon as possible. With this change it's possible to remove someprefinish
hacks whereprefinish
is used to get a synchronous pre_final
.
This is blocking some other pending fixes.
Blocked by https://github.com/nodejs/node/pull/29656
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines