func (m *Manager) GetQueue() []Job {
	m.mutex.Lock()
	defer m.mutex.Unlock()

	var ret []Job

	for _, j := range m.queue {
		jCopy := *j
		ret = append(ret, jCopy)
	}

	return ret
}
// GetQueue returns a copy of the current job queue.
GetQueue returns a copy of the current job queue.
// GetQueue returns a copy of the current job queue .
func (m *Manager) GetQueue() []Job {
	m.mutex.Lock()
	defer m.mutex.Unlock()
	var ret []Job
	for _, j := range m.queue {
		jCopy := *j
		ret = append(ret, jCopy)
	}
	return ret
}
func ( m * Manager ) GetQueue ( ) [ ] Job { m . mutex . Lock ( ) defer m . mutex . Unlock ( ) var ret [ ] Job for _ , j := range m . queue { jCopy := * j ret = append ( ret , jCopy ) } return ret }
GetQueue returns a copy of the current job queue.
GetQueue returns a copy of the current job queue .