Commit b6e1d22f authored by Matteo Collina's avatar Matteo Collina Committed by James M Snell
Browse files

stream: add destroy and _destroy methods.

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

PR-URL: https://github.com/nodejs/node/pull/12925


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarCalvin Metcalf <calvin.metcalf@gmail.com>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
parent f2e3a670
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment