MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / _destroy

Method _destroy

packages/kaos/src/internal.ts:266–273  ·  view source on GitHub ↗
(error: Error | null, callback: (error?: Error | null) => void)

Source from the content-addressed store, hash-verified

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)) {

Callers

nothing calls this directly

Calls 2

destroyMethod · 0.80
offMethod · 0.65

Tested by

no test coverage detected