'Unschedule a task.
This will remove all instances of the task from the task queue.
This is a no-op if the task is not scheduled.
Arguments:
task (callable): task to be unscheduled'

def unschedule(self, task):

    self._delayed_tasks.remove(task)
