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

Method close

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

Source from the content-addressed store, hash-verified

453 self._lock = _create_lock()
454
455 def close(self) -> None:
456 self.gc_safe_close()
457 # Increment the generation and maybe close the socket. If the executor
458 # thread has the socket checked out, it will be closed when checked in.
459 self._pool.reset()
460
461 def add_sample(self, sample: float) -> None:
462 """Add a RTT sample."""

Callers 1

_runMethod · 0.95

Calls 2

gc_safe_closeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected