MCPcopy
hub / github.com/Textualize/rich / remove_task

Method remove_task

rich/progress.py:1643–1651  ·  view source on GitHub ↗

Delete a task if it exists. Args: task_id (TaskID): A task ID.

(self, task_id: TaskID)

Source from the content-addressed store, hash-verified

1641 return new_task_index
1642
1643 def remove_task(self, task_id: TaskID) -> None:
1644 """Delete a task if it exists.
1645
1646 Args:
1647 task_id (TaskID): A task ID.
1648
1649 """
1650 with self._lock:
1651 del self._tasks[task_id]
1652
1653
1654if __name__ == "__main__": # pragma: no coverage

Callers 1

make_progressFunction · 0.95

Calls

no outgoing calls

Tested by 1

make_progressFunction · 0.76