Update docs for periodic tasks feature

This commit is contained in:
Ken Hibino
2020-10-12 06:47:43 -07:00
parent 4ae73abdaa
commit 1f059eeee1
5 changed files with 28 additions and 1 deletions

View File

@@ -126,7 +126,7 @@ func (j *enqueueJob) Run() {
}
}
// Register registers a task to be enqueued with given schedule specified by the cronspec.
// Register registers a task to be enqueued on the given schedule specified by the cronspec.
// It returns an ID of the newly registered entry.
func (s *Scheduler) Register(cronspec string, task *Task, opts ...Option) (entryID string, err error) {
job := &enqueueJob{