MCPcopy Index your code
hub / github.com/nodejs/node / #close

Method #close

lib/internal/vfs/streams.js:172–181  ·  view source on GitHub ↗

* Closes the file descriptor. * Note: Does not emit 'close' - the base Readable class handles that.

()

Source from the content-addressed store, hash-verified

170 * Note: Does not emit 'close' - the base Readable class handles that.
171 */
172 #close() {
173 if (this.#fd !== null) {
174 try {
175 this.#vfs.closeSync(this.#fd);
176 } catch {
177 // Ignore close errors
178 }
179 this.#fd = null;
180 }
181 }
182
183 /**
184 * Implements the readable _destroy method.

Callers 1

_destroyMethod · 0.95

Calls 1

closeSyncMethod · 0.45

Tested by

no test coverage detected