def task(self, func, *args, **kwargs):
        task = self.task_class()
        return self.push(task, func, *args, **kwargs)
Pushes a task onto the queue.
dataset/ETHPy150Open toastdriven/alligator/alligator/gator.py/Gator.task