停止指定任务
(name string)
| 89 | |
| 90 | //停止指定任务 |
| 91 | func (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 | 循环任务接口 |