Skip to content

Commit

Permalink
Merge pull request #4 from pbabbicola/master
Browse files Browse the repository at this point in the history
Add Len() for default scheduler
  • Loading branch information
marcsantiago authored Nov 5, 2018
2 parents 54db357 + 812325c commit 9617b75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gocron.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,3 +591,8 @@ func Remove(j interface{}) {
func NextRun() (job *Job, time time.Time) {
return defaultScheduler.NextRun()
}

// Len gets the amount of jobs in the scheduler
func Len() int {
return defaultScheduler.Len()
}

0 comments on commit 9617b75

Please sign in to comment.