MCPcopy
hub / github.com/CopilotKit/CopilotKit / stop

Function stop

packages/bot/src/create-bot.ts:785–799  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

783 }
784 },
785 async stop() {
786 // Isolate per-adapter shutdown failures: one adapter's stop() rejecting
787 // must not prevent the others from being stopped.
788 const stopResults = await Promise.allSettled(
789 opts.adapters.map((a) => a.stop()),
790 );
791 stopResults.forEach((r, i) => {
792 if (r.status === "rejected") {
793 console.error(
794 `[bot] adapter "${opts.adapters[i]!.platform}" failed to stop:`,
795 r.reason,
796 );
797 }
798 });
799 },
800 };
801 telemetry.capture("oss.bot.configured", {
802 platforms: opts.adapters.map((a) => normalizePlatform(a.platform)),

Callers

nothing calls this directly

Calls 3

forEachMethod · 0.80
stopMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…