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

Method calculateTriggerTime

executor.go:152–158  ·  view source on GitHub ↗
(delay time.Duration)

Source from the content-addressed store, hash-verified

150}
151
152func (executor *SimpleTaskExecutor) calculateTriggerTime(delay time.Duration) time.Time {
153 if delay < 0 {
154 delay = 0
155 }
156
157 return time.Now().Add(delay)
158}
159
160func (executor *SimpleTaskExecutor) addNewTask(task *ScheduledRunnableTask) {
161 executor.newTaskChannel <- task

Callers 4

ScheduleMethod · 0.95
ScheduleAtFixedRateMethod · 0.95
startTaskMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected