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

Method close

pymongo/network_layer.py:425–427  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

423 self.conn[1].settimeout(timeout)
424
425 async def close(self) -> None:
426 self.conn[1].close()
427 await self.conn[1].wait_closed()
428
429 def is_closing(self) -> bool:
430 return self.conn[0].is_closing()

Callers

nothing calls this directly

Calls 2

wait_closedMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected