(self, session_id: str)
| 287 | self._sessions[session_id].touch() |
| 288 | |
| 289 | def destroy(self, session_id: str) -> None: |
| 290 | with self._lock: |
| 291 | rt = self._sessions.pop(session_id, None) |
| 292 | if rt: |
| 293 | rt.close_sync() |
| 294 | |
| 295 | def _run_janitor(self) -> None: |
| 296 | while not self._stop.is_set(): |