code: def addTask(self, task):
          
          with self.regcond:
              self.taskset.append(task)
              task.add_callback('resolved', self.child_done, self.numtasks)
              self.numtasks += 1
              self.count += 1
  
          task.initialize(self)
          task.start()
docs: Add a task to the task set.