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

Method __del__

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

Source from the content-addressed store, hash-verified

1479 )
1480
1481 def __del__(self) -> None:
1482 # Avoid ResourceWarnings in Python 3
1483 # Close all sockets without calling reset() or close() because it is
1484 # not safe to acquire a lock in __del__.
1485 if _IS_SYNC:
1486 for conn in self.conns:
1487 conn.close_conn(None) # type: ignore[unused-coroutine]

Callers

nothing calls this directly

Calls 1

close_connMethod · 0.45

Tested by

no test coverage detected