Return the task with the given id, or ``None`` if absent.
(self, task_id: str)
| 84 | # -- read paths ------------------------------------------------------- |
| 85 | |
| 86 | def get(self, task_id: str) -> TaskStateBase | None: |
| 87 | """Return the task with the given id, or ``None`` if absent.""" |
| 88 | with self._lock: |
| 89 | return self._tasks.get(task_id) |
| 90 | |
| 91 | def all(self) -> list[TaskStateBase]: |
| 92 | """Snapshot of every registered task. Returns a list, not a view — |
no outgoing calls