(self, age: float = 60)
| 267 | slot.close() |
| 268 | |
| 269 | def _slot_gc(self, age: float = 60) -> None: |
| 270 | mintime = monotonic() - age |
| 271 | for key, slot in list(self.slots.items()): |
| 272 | if not slot.active and slot.lastseen + slot.delay < mintime: |
| 273 | self.slots.pop(key).close() |
| 274 | |
| 275 | def _start_slot_gc(self) -> None: |
| 276 | if self._slot_gc_loop: |