MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _run

Method _run

test/test_client.py:1788–1793  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1786 self.running = False
1787
1788 def _run(self):
1789 while self.running:
1790 exc = AutoReconnect("mock pool error")
1791 ctx = _ErrorContext(exc, 0, pool.gen.get_overall(), False, None)
1792 client._topology.handle_error(pool.address, ctx)
1793 time.sleep(0.001)
1794
1795 def run(self):
1796 self._run()

Callers 1

runMethod · 0.95

Calls 4

AutoReconnectClass · 0.90
_ErrorContextClass · 0.90
get_overallMethod · 0.45
handle_errorMethod · 0.45

Tested by

no test coverage detected