MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / exit

Method exit

daemon/src/service/upload_manager.ts:59–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 }
58
59 async exit() {
60 for (const [key, writer] of this.uploads.entries()) {
61 try {
62 await writer.stop();
63 this.uploads.delete(key);
64 } catch (e) {
65 console.error(`Failed to stop upload writer for key ${key}:`, e);
66 }
67 }
68 }
69}
70
71const uploadManager = new UploadManager();

Callers 7

setupHttpFunction · 0.45
processExitFunction · 0.45
app.tsFile · 0.45
mainThreadFunction · 0.45
getApiKeyFunction · 0.45
app.tsFile · 0.45
listenExitSigFunction · 0.45

Calls 3

errorMethod · 0.80
stopMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected