// NewScheduler creates a new Scheduler
NewScheduler creates a new Scheduler
// NewScheduler creates a new Scheduler
func NewScheduler(loc *time.Location) *Scheduler {
	executor := newExecutor()
	return &Scheduler{
		jobs:     make([]*Job, 0),
		location: loc,
		running:  false,
		time:     &trueTime{},
		executor: &executor,
	}
}
func NewScheduler ( loc * time . Location ) * Scheduler { executor := newExecutor ( ) return & Scheduler { jobs : make ( [ ] * Job , 0 ) , location : loc , running : false , time : & trueTime { } , executor : & executor , } }
NewScheduler creates a new Scheduler
NewScheduler creates a new Scheduler