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

Method __init__

pymongo/synchronous/cursor_base.py:36–39  ·  view source on GitHub ↗
(self, conn: Connection, more_to_come: bool)

Source from the content-addressed store, hash-verified

34 """Used with exhaust cursors to ensure the connection is returned."""
35
36 def __init__(self, conn: Connection, more_to_come: bool):
37 self.conn: Optional[Connection] = conn
38 self.more_to_come = more_to_come
39 self._lock = _create_lock()
40
41 def update_exhaust(self, more_to_come: bool) -> None:
42 self.more_to_come = more_to_come

Callers

nothing calls this directly

Calls 1

_create_lockFunction · 0.90

Tested by

no test coverage detected