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 {
142142}
143143
144144// 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 {
146146 for _ , ts := range t {
147147 r .timerTasks = append (r .timerTasks , timerTask {
148148 task : ts ,
@@ -152,7 +152,7 @@ func (r *Runner) WithTimerTask(duration time.Duration, t ...interface{}) *Runner
152152 return r
153153}
154154
155- func (r * Runner ) WithCronTask (cronSchedule string , t ... interface {}) * Runner {
155+ func (r * Runner ) WithCronTasks (cronSchedule string , t ... interface {}) * Runner {
156156 for _ , ts := range t {
157157 r .cronTasks = append (r .cronTasks , cronTask {
158158 task : ts ,
You can’t perform that action at this time.
0 commit comments