MCPcopy Create free account
hub / github.com/VirtualHotBar/NetMount / cancelTask

Method cancelTask

src/controller/task/scheduler.ts:77–85  ·  view source on GitHub ↗
(taskName: string)

Source from the content-addressed store, hash-verified

75 }
76
77 cancelTask(taskName: string) {
78 const task = this.tasks.find(t => t.name === taskName)
79 if (task && task.run.runId !== undefined) {
80 window.clearInterval(task.run.runId)
81 window.clearTimeout(task.run.runId)
82 ;(task.run.runId as number | undefined) = undefined
83 console.log(`${taskName} task cancelled.`)
84 }
85 }
86}
87
88export { TaskScheduler }

Callers 4

scheduleTaskMethod · 0.95
Task_pageFunction · 0.80
saveTaskFunction · 0.80
delTaskFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected