()
| 61 | |
| 62 | /** Flush and dispose the analytics runtime (daemon shutdown). */ |
| 63 | export const disposeAnalytics = async (): Promise<void> => { |
| 64 | const runtime = analyticsRuntime; |
| 65 | if (!runtime) return; |
| 66 | analyticsRuntime = null; |
| 67 | await Effect.runPromise(Effect.promise(() => runtime.dispose()).pipe(Effect.ignoreCause())); |
| 68 | }; |
no test coverage detected