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

Method close

pymongo/asynchronous/pool.py:919–920  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

917 await self._reset(close=False, pause=False)
918
919 async def close(self) -> None:
920 await self._reset(close=True)
921
922 def stale_generation(self, gen: int, service_id: Optional[ObjectId]) -> bool:
923 return self.gen.stale(gen, service_id)

Callers 7

_send_messageMethod · 0.45
rewindMethod · 0.45
_maybe_pin_connectionMethod · 0.45
_send_messageMethod · 0.45
unpinMethod · 0.45
_close_connMethod · 0.45

Calls 1

_resetMethod · 0.95

Tested by

no test coverage detected