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

Method close

pymongo/asynchronous/cursor_base.py:44–48  ·  view source on GitHub ↗

Return this instance's connection to the connection pool.

(self)

Source from the content-addressed store, hash-verified

42 self.more_to_come = more_to_come
43
44 async def close(self) -> None:
45 """Return this instance's connection to the connection pool."""
46 if self.conn:
47 await self.conn.unpin()
48 self.conn = None
49
50
51class _AsyncCursorBase(_AgnosticCursorBase[_DocumentType]):

Callers

nothing calls this directly

Calls 1

unpinMethod · 0.45

Tested by

no test coverage detected