MCPcopy
hub / github.com/claude-code-best/claude-code / cleanup

Method cleanup

src/utils/ShellCommand.ts:92–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 }
91
92 cleanup(): void {
93 if (this.#isCleanedUp) {
94 return
95 }
96 this.#isCleanedUp = true
97 this.#stream!.removeListener('data', this.#onData)
98 // Release references so the stream, its StringDecoder, and
99 // the TaskOutput can be GC'd independently of this wrapper.
100 this.#stream = null
101 this.#taskOutput = null
102 this.#onData = () => {}
103 }
104}
105
106/**

Callers 15

ConsoleOAuthFlowFunction · 0.45
executeInBackgroundFunction · 0.45
execCommandHookFunction · 0.45
cleanupMethod · 0.45
finalizeHookFunction · 0.45
startWorkPollLoopFunction · 0.45
runBridgeLoopFunction · 0.45
OAuthFlowStepFunction · 0.45
clearConversationFunction · 0.45
updateSdkMcpFunction · 0.45
runHeadlessStreamingFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected