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

Method get

pymongo/asynchronous/pool.py:669–673  ·  view source on GitHub ↗

Get the generation for the given service_id.

(self, service_id: Optional[ObjectId])

Source from the content-addressed store, hash-verified

667 self._generation = 0
668
669 def get(self, service_id: Optional[ObjectId]) -> int:
670 """Get the generation for the given service_id."""
671 if service_id is None:
672 return self._generation
673 return self._generations[service_id]
674
675 def get_overall(self) -> int:
676 """Get the Pool's overall generation."""

Callers 2

staleMethod · 0.95
_helloMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected