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

Method __aexit__

pymongo/asynchronous/cursor_base.py:92–93  ·  view source on GitHub ↗
(self, exc_type: Any, exc_val: Any, exc_tb: Any)

Source from the content-addressed store, hash-verified

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()
94
95 @_csot.apply
96 async def to_list(self, length: Optional[int] = None) -> list[_DocumentType]:

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected