MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / _should_stop

Method _should_stop

pymongo/periodic_executor.py:226–231  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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():

Callers 1

_runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected