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

Method stale_generation

pymongo/asynchronous/pool.py:922–923  ·  view source on GitHub ↗
(self, gen: int, service_id: Optional[ObjectId])

Source from the content-addressed store, hash-verified

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)
924
925 async def remove_stale_sockets(self, reference_generation: int) -> None:
926 """Removes stale sockets then adds new ones if pool is too small and

Callers 3

checkinMethod · 0.95
_perishedMethod · 0.95
_is_stale_errorMethod · 0.45

Calls 1

staleMethod · 0.45

Tested by

no test coverage detected