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

Method gc_safe_close

pymongo/synchronous/monitor.py:191–194  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

189 self._rtt_monitor.close()
190
191 def gc_safe_close(self) -> None:
192 self._executor.close()
193 self._rtt_monitor.gc_safe_close()
194 self.cancel_check()
195
196 def join(self) -> None:
197 asyncio.gather(self._executor.join(), self._rtt_monitor.join(), return_exceptions=True) # type: ignore[func-returns-value]

Callers 4

closeMethod · 0.95
_on_topology_gcMethod · 0.45
closeMethod · 0.45
_shutdown_monitorsFunction · 0.45

Calls 2

cancel_checkMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected