(self)
| 224 | self._skip_sleep = True |
| 225 | |
| 226 | def _should_stop(self) -> bool: |
| 227 | with self._lock: |
| 228 | if self._stopped: |
| 229 | self._thread_will_exit = True |
| 230 | return True |
| 231 | return False |
| 232 | |
| 233 | def _run(self) -> None: |
| 234 | while not self._should_stop(): |