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

Method unpin

pymongo/asynchronous/pool.py:230–235  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

228 assert not self.pinned_txn
229
230 async def unpin(self) -> None:
231 pool = self.pool_ref()
232 if pool:
233 await pool.checkin(self)
234 else:
235 await self.close_conn(ConnectionClosedReason.STALE)
236
237 def hello_cmd(self) -> dict[str, Any]:
238 # Handshake spec requires us to use OP_MSG+hello command for the

Callers 1

closeMethod · 0.45

Calls 2

close_connMethod · 0.95
checkinMethod · 0.45

Tested by

no test coverage detected