MCPcopy Index your code
hub / github.com/nodejs/node / _destroy

Method _destroy

lib/internal/vfs/streams.js:188–193  ·  view source on GitHub ↗

* Implements the readable _destroy method. * @param {Error|null} err The error * @param {Function} callback Callback

(err, callback)

Source from the content-addressed store, hash-verified

186 * @param {Function} callback Callback
187 */
188 _destroy(err, callback) {
189 if (this.#autoClose) {
190 this.#close();
191 }
192 callback(err);
193 }
194}
195
196/**

Callers

nothing calls this directly

Calls 2

#closeMethod · 0.95
callbackFunction · 0.50

Tested by

no test coverage detected