mirror of
https://github.com/Fishwaldo/sched.git
synced 2025-03-15 19:41:46 +00:00
feat: Method to Return Schedule State
This commit is contained in:
parent
6eeb2cc626
commit
7457bc9eae
1 changed files with 4 additions and 0 deletions
|
@ -240,3 +240,7 @@ func negativeToZero(nextRunDuration time.Duration) time.Duration {
|
|||
}
|
||||
return nextRunDuration
|
||||
}
|
||||
// State Returns the current State of the Schedule
|
||||
func (s *Schedule) State() State {
|
||||
return s.state
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue