MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / __exit__

Method __exit__

pymongo/synchronous/change_stream.py:438–439  ·  view source on GitHub ↗
(self, exc_type: Any, exc_val: Any, exc_tb: Any)

Source from the content-addressed store, hash-verified

436 return self
437
438 def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None:
439 self.close()
440
441
442class CollectionChangeStream(ChangeStream[_DocumentType]):

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected