MCPcopy Index your code
hub / github.com/codnect/chrono / ScheduledRunnableTask

Struct ScheduledRunnableTask

task.go:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98type ScheduledRunnableTask struct {
99 id int
100 task Task
101 taskMu sync.RWMutex
102 triggerTime time.Time
103 period time.Duration
104 fixedRate bool
105 cancelled bool
106}
107
108func CreateScheduledRunnableTask(id int, task Task, triggerTime time.Time, period time.Duration, fixedRate bool) (*ScheduledRunnableTask, error) {
109 if task == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected