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

Function close

lib/internal/streams/iter/duplex.js:73–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 };
72 },
73 async close() {
74 if (aClosed) return;
75 aClosed = true;
76 // End the writer (signals end-of-stream to B's readable)
77 aWriter.endSync();
78 // Stop iteration of this channel's readable
79 if (aReadableIterator?.return) {
80 await aReadableIterator.return();
81 aReadableIterator = null;
82 }
83 },
84 [SymbolAsyncDispose]() {
85 return this.close();
86 },

Callers

nothing calls this directly

Calls 2

endSyncMethod · 0.45
returnMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…