MCPcopy Index your code
hub / github.com/kubernetes-client/python / start

Method start

kubernetes/informer/informer.py:136–150  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Calls

no outgoing calls