MCPcopy Create free account
hub / github.com/devfeel/dottask / Start

Method Start

looptask.go:64–76  ·  view source on GitHub ↗

Start start task

()

Source from the content-addressed store, hash-verified

62
63//Start start task
64func (task *LoopTask) Start() {
65 if !task.IsRun {
66 return
67 }
68
69 task.mutex.Lock()
70 defer task.mutex.Unlock()
71
72 if task.State == TaskState_Init || task.State == TaskState_Stop {
73 task.State = TaskState_Run
74 startLoopTask(task)
75 }
76}
77
78// RunOnce do task only once
79// no match Express or Interval

Callers 1

ResetMethod · 0.95

Calls 1

startLoopTaskFunction · 0.85

Tested by

no test coverage detected