MCPcopy Create free account
hub / github.com/codnect/chrono / ScheduleAtFixedRate

Method ScheduleAtFixedRate

scheduler.go:84–92  ·  view source on GitHub ↗
(task Task, period time.Duration, options ...Option)

Source from the content-addressed store, hash-verified

82}
83
84func (scheduler *SimpleTaskScheduler) ScheduleAtFixedRate(task Task, period time.Duration, options ...Option) (ScheduledTask, error) {
85 schedulerTask, err := CreateSchedulerTask(task, options...)
86
87 if err != nil {
88 return nil, err
89 }
90
91 return scheduler.taskExecutor.ScheduleAtFixedRate(schedulerTask.task, schedulerTask.GetInitialDelay(), period)
92}
93
94func (scheduler *SimpleTaskScheduler) IsShutdown() bool {
95 return scheduler.taskExecutor.IsShutdown()

Calls 3

CreateSchedulerTaskFunction · 0.85
GetInitialDelayMethod · 0.80
ScheduleAtFixedRateMethod · 0.65