axe/pool.go
func (p *Pool) Add(task *Task) {
	// check existence
	if p.tasks[task.Name] != nil {
		panic(fmt.Sprintf(`axe: task with name "%s" already exists`, task.Name))
	}

	// save task
	p.tasks[task.Name] = task

	// add task to queue
	task.Queue.tasks = append(task.Queue.tasks, task.Name)

	// save queue
	p.queues[task.Queue] = true
}
func (p *Pool) Add(task *Task) {
	// check existence
	if p.tasks[task.Name] != nil {
		panic(fmt.Sprintf(`axe: task with name "%s" already exists`, task.Name))
	}

	// save task
	p.tasks[task.Name] = task

	// add task to queue
	task.Queue.tasks = append(task.Queue.tasks, task.Name)

	// save queue
	p.queues[task.Queue] = true
}
// Add will add the specified task and its queue to the pool.