func (m *Manager) CancelAll() {
	m.mutex.Lock()
	defer m.mutex.Unlock()

	// call cancel on all
	for _, j := range m.queue {
		j.cancel()

		if j.Status == StatusCancelled {
			// add to graveyard
			m.removeJob(j)
		}
	}
}
// CancelAll cancels all of the jobs in the queue. This is the same as
// calling CancelJob on all jobs in the queue.
CancelAll cancels all of the jobs in the queue. This is the same as
calling CancelJob on all jobs in the queue.
// CancelAll cancels all of the jobs in the queue . This is the same as // calling CancelJob on all jobs in the queue .
func (m *Manager) CancelAll() {
	m.mutex.Lock()
	defer m.mutex.Unlock()
	for _, j := range m.queue {
		j.cancel()
		if j.Status == StatusCancelled {
			m.removeJob(j)
		}
	}
}
func ( m * Manager ) CancelAll ( ) { m . mutex . Lock ( ) defer m . mutex . Unlock ( ) for _ , j := range m . queue { j . cancel ( ) if j . Status == StatusCancelled { m . removeJob ( j ) } } }
CancelAll cancels all of the jobs in the queue.
CancelAll cancels all of the jobs in the queue .
// call cancel on all // add to graveyard