(options: CleanupOptions)
| 139 | } |
| 140 | |
| 141 | export async function runCleanup(options: CleanupOptions): Promise<void> { |
| 142 | options.cancelEmbeddings?.(); |
| 143 | options.stopMonitors?.(); |
| 144 | options.stopTracker(); |
| 145 | await Promise.allSettled([ |
| 146 | Promise.resolve(options.closeServer()), |
| 147 | Promise.resolve(options.closeTransport()), |
| 148 | ]); |
| 149 | } |
no outgoing calls
no test coverage detected