Skip to content

Commit a1ce701

Browse files
committed
feat(cron): adding the IsRunning function
Adds a public function `IsRunning` to report back the status of the cron scheduler
1 parent bc59245 commit a1ce701

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cron.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,3 +353,8 @@ func (c *Cron) removeEntry(id EntryID) {
353353
}
354354
c.entries = entries
355355
}
356+
357+
// IsRunning returns the status of the cron scheduler
358+
func (c *Cron) IsRunning() bool {
359+
return c.running
360+
}

0 commit comments

Comments
 (0)