Start the background watch loop in a daemon thread. Calling :meth:`start` more than once without an intervening :meth:`stop` is a no-op.
(self)
| 134 | pass |
| 135 | |
| 136 | def start(self): |
| 137 | """Start the background watch loop in a daemon thread. |
| 138 | |
| 139 | Calling :meth:`start` more than once without an intervening |
| 140 | :meth:`stop` is a no-op. |
| 141 | """ |
| 142 | if self._thread is not None and self._thread.is_alive(): |
| 143 | return |
| 144 | self._stop_event.clear() |
| 145 | self._thread = threading.Thread( |
| 146 | target=self._run_loop, |
| 147 | name="SharedInformer", |
| 148 | daemon=True, |
| 149 | ) |
| 150 | self._thread.start() |
| 151 | |
| 152 | def stop(self): |
| 153 | """Ask the background watch loop to stop and join the thread.""" |
no outgoing calls