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

Method closeSync

lib/internal/fs/dir.js:277–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275 }
276
277 closeSync() {
278 if (this.#closed === true) {
279 throw new ERR_DIR_CLOSED();
280 }
281
282 if (this.#operationQueue !== null) {
283 throw new ERR_DIR_CONCURRENT_OPERATION();
284 }
285
286 while (this.#handlerQueue.length > 0) {
287 const handler = ArrayPrototypeShift(this.#handlerQueue);
288 handler.handle.close();
289 }
290
291 this.#closed = true;
292 this.#handle.close();
293 }
294
295 async* entries() {
296 try {

Callers 15

[SymbolDispose]Method · 0.95
tryStatSyncFunction · 0.45
tryCreateBufferFunction · 0.45
tryGetReadFileBufferFunction · 0.45
tryReadSyncFunction · 0.45
readFileSyncFunction · 0.45
closeSyncFunction · 0.45
truncateSyncFunction · 0.45
lchmodSyncFunction · 0.45
writeFileSyncFunction · 0.45
cleanupMethod · 0.45

Calls 1

closeMethod · 0.65

Tested by 1

testFunction · 0.36