Skip to content

stream: add destroy and _destroy methods.

Rodrigo Muino Tomonari requested to merge github/fork/mcollina/destroy into master

Adds destroy() and _destroy() methods to Readable, Writable, Duplex and Transform. It also standardize the behavior and the implementation of destroy(), which has been incosistent in userland. This PR also updates all subsystems of core to use the new destroy().

Fixes: https://github.com/nodejs/readable-stream/issues/124

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

stream, net, fs, process

Merge request reports

Loading