()
| 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); |