MCPcopy
hub / github.com/CapSoftware/Cap / cleanup

Function cleanup

apps/media-server/src/routes/video.ts:237–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235 let cleanedUp = false;
236
237 const cleanup = async () => {
238 if (cleanedUp) return;
239 cleanedUp = true;
240 await cleanupTempFiles(tempFiles);
241 onCleanup?.();
242 };
243
244 const stream = new ReadableStream<Uint8Array>({
245 async start(controller) {

Callers 4

startFunction · 0.70
cancelFunction · 0.70
audio.tsFile · 0.70

Calls 1

cleanupTempFilesFunction · 0.85

Tested by

no test coverage detected