MCPcopy Create free account
hub / github.com/buguang01/bige / DelRask

Method DelRask

modules/AutoTaskModule.go:91–100  ·  view source on GitHub ↗

停止指定任务

(name string)

Source from the content-addressed store, hash-verified

89
90//停止指定任务
91func (mod *AutoTaskModule) DelRask(name string) bool {
92 mod.lock.Lock()
93 defer mod.lock.Unlock()
94 if tk, ok := mod.taskList[name]; ok {
95 tk.Stop()
96 delete(mod.taskList, name)
97 return true
98 }
99 return true
100}
101
102/*
103循环任务接口

Callers

nothing calls this directly

Calls 1

StopMethod · 0.65

Tested by

no test coverage detected