()
| 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 | /** |
no outgoing calls
no test coverage detected