code: def submit_tasks(self, wait=False):
          
          for task in self:
              task.start()
  
          if wait:
              for task in self: task.wait()
docs: Submits the task in self and wait.
          TODO: change name.