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

Method unpin

pymongo/asynchronous/client_session.py:458–462  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

456 self.conn_mgr = _ConnectionManager(conn, False)
457
458 async def unpin(self) -> None:
459 self.pinned_address = None
460 if self.conn_mgr:
461 await self.conn_mgr.close()
462 self.conn_mgr = None
463
464 async def reset(self) -> None:
465 await self.unpin()

Callers 2

resetMethod · 0.95
_unpinMethod · 0.45

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected