code: func (task *Task) AddResource(resourceType string, resource taskresource.TaskResource) {
  	task.lock.Lock()
  	defer task.lock.Unlock()
  	task.ResourcesMapUnsafe[resourceType] = append(task.ResourcesMapUnsafe[resourceType], resource)
  }
docs: // AddResource adds a resource to ResourcesMap