func ChangeInterval(id string, interval time.Duration) error {
	tsk := tasks.get(id)
	if tsk == nil {
		wg.Wait()
		tsk = tasks.get(id)
		if tsk == nil {
			return fmt.Errorf("Task does not exist")
		}
	}
	var task *Task
	var ok bool
	if task, ok = tsk.(*Task); !ok {
		return fmt.Errorf("This type does not support modifying the execution interval")
	}
	editC <- &intervalChange{
		task:     task,
		interval: interval,
	}

	return nil
}
// ChangeInterval changes the interval between the tasks specified by the ID,
// Apply only to polling tasks.
ChangeInterval changes the interval between the tasks specified by the ID,
Apply only to polling tasks.
// ChangeInterval changes the interval between the tasks specified by the ID // Apply only to polling tasks .
func ChangeInterval(id string, interval time.Duration) error {
	tsk := tasks.get(id)
	if tsk == nil {
		wg.Wait()
		tsk = tasks.get(id)
		if tsk == nil {
			return fmt.Errorf("Task does not exist")
		}
	}
	var task *Task
	var ok bool
	if task, ok = tsk.(*Task); !ok {
		return fmt.Errorf("This type does not support modifying the execution interval")
	}
	editC <- &intervalChange{
		task:     task,
		interval: interval,
	}
	return nil
}
func ChangeInterval ( id string , interval time . Duration ) error { tsk := tasks . get ( id ) if tsk == nil { wg . Wait ( ) tsk = tasks . get ( id ) if tsk == nil { return fmt . Errorf ( " " ) } } var task * Task var ok bool if task , ok = tsk . ( * Task ) ; ! ok { return fmt . Errorf ( " " ) } editC <- & intervalChange { task : task , interval : interval , } return nil }
ChangeInterval changes the interval between the tasks specified by the ID,
Apply only to polling tasks.
ChangeInterval changes the interval between the tasks specified by the ID Apply only to polling tasks .