(error: Error | null, callback: (error?: Error | null) => void)
| 264 | } |
| 265 | |
| 266 | override _destroy(error: Error | null, callback: (error?: Error | null) => void): void { |
| 267 | this._source.off('data', this._onData); |
| 268 | this._source.off('end', this._onEnd); |
| 269 | this._source.off('close', this._onClose); |
| 270 | this._source.off('error', this._onError); |
| 271 | this._source.destroy(); |
| 272 | callback(error); |
| 273 | } |
| 274 | |
| 275 | private readonly _onData = (chunk: string | Uint8Array): void => { |
| 276 | if (!this.push(chunk)) { |