File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ func (r *Runner) WithTasks(t ...interface{}) *Runner {
142
142
}
143
143
144
144
// WithTimerTask is the way to add different tasks that will be executed periodically at the frequency defined with the duration.
145
- func (r * Runner ) WithTimerTask (duration time.Duration , t ... interface {}) * Runner {
145
+ func (r * Runner ) WithTimerTasks (duration time.Duration , t ... interface {}) * Runner {
146
146
for _ , ts := range t {
147
147
r .timerTasks = append (r .timerTasks , timerTask {
148
148
task : ts ,
@@ -152,7 +152,7 @@ func (r *Runner) WithTimerTask(duration time.Duration, t ...interface{}) *Runner
152
152
return r
153
153
}
154
154
155
- func (r * Runner ) WithCronTask (cronSchedule string , t ... interface {}) * Runner {
155
+ func (r * Runner ) WithCronTasks (cronSchedule string , t ... interface {}) * Runner {
156
156
for _ , ts := range t {
157
157
r .cronTasks = append (r .cronTasks , cronTask {
158
158
task : ts ,
You can’t perform that action at this time.
0 commit comments