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

Method _resume

pymongo/synchronous/change_stream.py:261–267  ·  view source on GitHub ↗

Reestablish this change stream after a resumable error.

(self)

Source from the content-addressed store, hash-verified

259 return self._run_aggregation_cmd(session=s)
260
261 def _resume(self) -> None:
262 """Reestablish this change stream after a resumable error."""
263 try:
264 self._cursor.close()
265 except PyMongoError:
266 pass
267 self._cursor = self._create_cursor()
268
269 def close(self) -> None:
270 """Close this ChangeStream."""

Callers 1

try_nextMethod · 0.95

Calls 2

_create_cursorMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected