MCPcopy
hub / github.com/xpf0000/FlyEnv / taskCancel

Function taskCancel

src/render/components/Ollama/models/setup.ts:38–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 const taskCancel = () => {
39 if (OllamaModelsSetup.tab === 'all') {
40 OllamaAllModelsSetup.installing = false
41 OllamaAllModelsSetup.installEnd = false
42 OllamaAllModelsSetup.xterm?.stop()?.then(() => {
43 OllamaAllModelsSetup.xterm?.destroy()
44 delete OllamaAllModelsSetup.xterm
45 })
46 return
47 }
48 }
49
50 const loading = computed(() => {
51 if (OllamaModelsSetup.tab === 'all') {

Callers

nothing calls this directly

Calls 3

thenMethod · 0.45
stopMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected