MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / stopScript

Method stopScript

src/app/service/sandbox/runtime.ts:309–319  ·  view source on GitHub ↗
(uuid: string)

Source from the content-addressed store, hash-verified

307 }
308
309 async stopScript(uuid: string) {
310 const exec = this.execScriptMap.get(uuid);
311 if (!exec) {
312 proxyUpdateRunStatus(this.windowMessage, { uuid: uuid, runStatus: SCRIPT_RUN_STATUS_COMPLETE });
313 return false;
314 }
315 exec.stop();
316 this.execScriptMap.delete(uuid);
317 proxyUpdateRunStatus(this.windowMessage, { uuid: uuid, runStatus: SCRIPT_RUN_STATUS_COMPLETE });
318 return true;
319 }
320
321 async runScript(script: ScriptRunResource) {
322 const exec = this.execScriptMap.get(script.uuid);

Callers 5

disableScriptMethod · 0.95
execScriptMethod · 0.95
runScriptMethod · 0.95
index.tsxFile · 0.45
requestStopScriptFunction · 0.45

Calls 4

proxyUpdateRunStatusFunction · 0.90
getMethod · 0.65
deleteMethod · 0.65
stopMethod · 0.45

Tested by

no test coverage detected