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

Method close

lib/internal/fs/recursive_watch.js:90–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 close() {
91 if (this.#closed) {
92 return;
93 }
94
95 this.#closed = true;
96
97 for (const file of this.#files.keys()) {
98 this.#watchers.get(file)?.close();
99 this.#watchers.delete(file);
100 }
101
102 this.#files.clear();
103 this.#symbolicFiles.clear();
104 this.emit('close');
105 }
106
107 #unwatchFiles(file) {
108 this.#symbolicFiles.delete(file);

Callers 2

onAbortMethod · 0.95
[SymbolAsyncIterator]Method · 0.95

Calls 6

keysMethod · 0.65
closeMethod · 0.65
getMethod · 0.65
deleteMethod · 0.65
clearMethod · 0.65
emitMethod · 0.45

Tested by

no test coverage detected