Skip to content

Commit

Permalink
docs: fix WaitMode and Milliseconds documentation (#570)
Browse files Browse the repository at this point in the history
* docs: update WaitMode and Milliseconds documentation

* Update scheduler.go Milliseconds docs
  • Loading branch information
husam-e authored Sep 19, 2023
1 parent 7fea08c commit 269c4d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const (
// // blocked trying to send to the buffered channel
// time.Sleep(10 * time.Minute)
// })

WaitMode
)

Expand Down
4 changes: 2 additions & 2 deletions scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1108,12 +1108,12 @@ func (s *Scheduler) setUnit(unit schedulingUnit) {
job.setUnit(unit)
}

// Millisecond sets the unit with seconds
// Millisecond sets the unit with milliseconds
func (s *Scheduler) Millisecond() *Scheduler {
return s.Milliseconds()
}

// Milliseconds sets the unit with seconds
// Milliseconds sets the unit with milliseconds
func (s *Scheduler) Milliseconds() *Scheduler {
s.setUnit(milliseconds)
return s
Expand Down

0 comments on commit 269c4d1

Please sign in to comment.