MCPcopy
hub / github.com/CopilotKit/CopilotKit / teardown

Method teardown

packages/angular/src/lib/threads.ts:477–483  ·  view source on GitHub ↗

Unsubscribes all selector bridges and stops the underlying core store.

()

Source from the content-addressed store, hash-verified

475
476 /** Unsubscribes all selector bridges and stops the underlying core store. */
477 teardown(): void {
478 for (const subscription of this.#subscriptions) {
479 subscription.unsubscribe();
480 }
481 this.#subscriptions.length = 0;
482 this.#store.stop();
483 }
484
485 /**
486 * Subscribes each core selector to its mirroring writable signal. The

Callers 1

constructorMethod · 0.95

Calls 2

unsubscribeMethod · 0.65
stopMethod · 0.65

Tested by

no test coverage detected