(self)
| 108 | self.running = False |
| 109 | |
| 110 | def ensure_started(self) -> None: |
| 111 | if not self.running and not self.is_alive(): |
| 112 | if self.on_start: |
| 113 | self.on_start(self) |
| 114 | self.start() |
| 115 | |
| 116 | def _do_enter(self, meth: str, *args: Any, **kwargs: Any) -> Entry: |
| 117 | self.ensure_started() |