def add_task(self, fn, *args, **kwargs):
    with self.condition:
      self.tasks.append((fn, args, kwargs))
      self.condition.notify()
      self.run()
Add the function ``fn`` to the queue to be invoked with
dataset/ETHPy150Open JeremyOT/Toto/toto/tasks.py/TaskQueue.add_task