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

Function close

lib/internal/webstreams/adapters.js:272–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270 },
271
272 close() {
273 if (closed === undefined && !isWritableEnded(streamWritable)) {
274 closed = PromiseWithResolvers();
275 streamWritable.end();
276 return closed.promise;
277 }
278
279 controller = undefined;
280 return PromiseResolve();
281 },
282 }, strategy);
283}
284

Callers

nothing calls this directly

Calls 3

isWritableEndedFunction · 0.85
endMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…