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

Method removeCallback

frontend/src/services/uploadService.ts:99–106  ·  view source on GitHub ↗
(type: "start" | "end", callback: () => void)

Source from the content-addressed store, hash-verified

97 }
98
99 removeCallback(type: "start" | "end", callback: () => void) {
100 if (type == "start") {
101 this.callbacks.onStart.delete(callback);
102 }
103 if (type == "end") {
104 this.callbacks.onEnd.delete(callback);
105 }
106 }
107
108 onStart() {
109 this.callbacks.onStart.forEach((callback) => {

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected