Skip to content

Commit

Permalink
feat(cron): adding the IsRunning function
Browse files Browse the repository at this point in the history
Adds a public function `IsRunning` to report back the status of the cron scheduler
  • Loading branch information
sc250024 committed Jun 22, 2023
1 parent bc59245 commit a1ce701
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,3 +353,8 @@ func (c *Cron) removeEntry(id EntryID) {
}
c.entries = entries
}

// IsRunning returns the status of the cron scheduler
func (c *Cron) IsRunning() bool {
return c.running
}

0 comments on commit a1ce701

Please sign in to comment.