func (c *Cron) HasJob(name string) bool {
	c.lock.Lock()
	defer c.lock.Unlock()

	_, ok := c.jobs[name]
	return ok
}
func (c *Cron) HasJob(name string) bool {
	c.lock.Lock()
	defer c.lock.Unlock()

	_, ok := c.jobs[name]
	return ok
}
func ( c * Cron ) HasJob ( name string ) bool { c . lock . Lock ( ) defer c . lock . Unlock ( ) _ , ok := c . jobs [ name ] return ok }
// HasJob returns if a job has been scheduled in cronAgent or not
HasJob returns if a job has been scheduled in cronAgent or not