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

Method close

pymongo/asynchronous/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 async def close(self) -> None:
89 """Explicitly close / kill this cursor."""
90 await self._die_lock()
91
92 async def __aexit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None:
93 await self.close()

Callers 1

__aexit__Method · 0.95

Calls 1

_die_lockMethod · 0.95

Tested by

no test coverage detected