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

Method close

pymongo/network_layer.py:673–676  ·  view source on GitHub ↗
(self, exc: Optional[Exception] = None)

Source from the content-addressed store, hash-verified

671 self._done_messages.append(msg)
672
673 def close(self, exc: Optional[Exception] = None) -> None:
674 self.transport.abort()
675 self._resolve_pending_messages(exc)
676 self._connection_lost = True
677
678 def connection_lost(self, exc: Optional[Exception] = None) -> None:
679 self._resolve_pending_messages(exc)

Callers 3

buffer_updatedMethod · 0.95
closeMethod · 0.45
closeMethod · 0.45

Calls 2

abortMethod · 0.45

Tested by

no test coverage detected