MCPcopy
hub / github.com/webpack/webpack / close

Method close

test/helpers/EventSourceForNode.js:43–50  ·  test/helpers/EventSourceForNode.js::EventSource.close
()

Source from the content-addressed store, hash-verified

41 }
42
43 close() {
44 class="cm">// Mark intentional so destroying the in-flight request/response below
45 class="cm">// doesn't surface its abort as an onerror. Destroying the request also
46 class="cm">// frees a pending socket when close() runs before the response arrives.
47 this.closed = true;
48 this.request.destroy();
49 if (this.response) this.response.destroy();
50 }
51
52 class="cm">// eslint-disable-next-line accessor-pairs
53 set onopen(/** @type {unknown} */ value) {

Callers 15

buildBatchFunction · 0.45
WatchClose.test.jsFile · 0.45
closeFunction · 0.45
runWebpackFunction · 0.45
afterAllFunction · 0.45
runCompilerFunction · 0.45
describeCasesFunction · 0.45
step5Function · 0.45
describeCasesFunction · 0.45
buildBatchFunction · 0.45

Calls 1

destroyMethod · 0.80

Tested by 6

closeFunction · 0.36
runCompilerFunction · 0.36
step5Function · 0.36
compileFunction · 0.36
createStatsFunction · 0.36
compileFunction · 0.36