func (js *JobScheduler) State() JobSchedulerState {
	if js.Latch.IsStarted() {
		return JobSchedulerStateRunning
	}
	if js.Latch.IsStopped() {
		return JobSchedulerStateStopped
	}
	return JobSchedulerStateUnknown
}
// State returns the job scheduler state.
State returns the job scheduler state.
// State returns the job scheduler state .
func (js *JobScheduler) State() JobSchedulerState {
	if js.Latch.IsStarted() {
		return JobSchedulerStateRunning
	}
	if js.Latch.IsStopped() {
		return JobSchedulerStateStopped
	}
	return JobSchedulerStateUnknown
}
func ( js * JobScheduler ) State ( ) JobSchedulerState { if js . Latch . IsStarted ( ) { return JobSchedulerStateRunning } if js . Latch . IsStopped ( ) { return JobSchedulerStateStopped } return JobSchedulerStateUnknown }
State returns the job scheduler state.
State returns the job scheduler state .