code: func (l *DefaultLifecycle) findTaskIndex(task *Task) int {
  	for i, t := range l.registry {
  		if t == task {
  			return i
  		}
  	}
  
  	return -1
  }
docs: // Returns the index of the task in the tasks list. Returns -1 if the task
  // was not in the list.