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

Method close

pymongo/synchronous/change_stream.py:269–272  ·  view source on GitHub ↗

Close this ChangeStream.

(self)

Source from the content-addressed store, hash-verified

267 self._cursor = self._create_cursor()
268
269 def close(self) -> None:
270 """Close this ChangeStream."""
271 self._closed = True
272 self._cursor.close()
273
274 def __iter__(self) -> ChangeStream[_DocumentType]:
275 return self

Callers 3

try_nextMethod · 0.95
__exit__Method · 0.95
_resumeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected