(self)
| 55 | self._error = error |
| 56 | |
| 57 | def start(self) -> None: |
| 58 | with self._lock: |
| 59 | if self._started: |
| 60 | return |
| 61 | self._started = True |
| 62 | self._thread = threading.Thread(target=self._run, name="wetext-preload", daemon=True) |
| 63 | self._thread.start() |
| 64 | |
| 65 | def ensure_ready(self) -> TextNormalizationSnapshot: |
| 66 | with self._lock: |
no outgoing calls
no test coverage detected