MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / close

Method close

pymongo/synchronous/cursor_base.py:88–90  ·  view source on GitHub ↗

Explicitly close / kill this cursor.

(self)

Source from the content-addressed store, hash-verified

86 self._sock_mgr = None
87
88 def close(self) -> None:
89 """Explicitly close / kill this cursor."""
90 self._die_lock()
91
92 def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None:
93 self.close()

Callers 1

__exit__Method · 0.95

Calls 1

_die_lockMethod · 0.95

Tested by

no test coverage detected