(self, proc: RunningProcess)
| 20 | self._processes.append(proc) |
| 21 | |
| 22 | def unregister(self, proc: RunningProcess) -> None: |
| 23 | with self._lock: |
| 24 | try: |
| 25 | self._processes.remove(proc) |
| 26 | except ValueError: |
| 27 | pass |
| 28 | |
| 29 | def list_active(self) -> list[RunningProcess]: |
| 30 | with self._lock: |