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

Method __init__

test/asynchronous/utils.py:239–244  ·  view source on GitHub ↗
(self, address, options, is_sdam=False, client_id=None)

Source from the content-addressed store, hash-verified

237
238class AsyncMockPool:
239 def __init__(self, address, options, is_sdam=False, client_id=None):
240 self.gen = _PoolGeneration()
241 self._lock = _async_create_lock()
242 self.opts = options
243 self.operation_count = 0
244 self.conns = []
245
246 def stale_generation(self, gen, service_id):
247 return self.gen.stale(gen, service_id)

Callers

nothing calls this directly

Calls 2

_PoolGenerationClass · 0.90
_async_create_lockFunction · 0.90

Tested by

no test coverage detected