MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / disposeAnalytics

Function disposeAnalytics

apps/host-selfhost/src/analytics.ts:61–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60/** Flush and dispose the analytics runtime (server shutdown). */
61export const disposeAnalytics = async (): Promise<void> => {
62 const runtime = analyticsRuntime;
63 if (!runtime) return;
64 analyticsRuntime = null;
65 await Effect.runPromise(Effect.promise(() => runtime.dispose()).pipe(Effect.ignoreCause()));
66};
67
68/**
69 * The execution-analytics `EngineDecorator`: every engine the shared stack

Callers 1

startServerFunction · 0.90

Calls 1

disposeMethod · 0.80

Tested by

no test coverage detected