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

Method close

pymongo/asynchronous/monitor.py:112–117  ·  view source on GitHub ↗

Close and stop monitoring. open() restarts the monitor after closing.

(self)

Source from the content-addressed store, hash-verified

110 self._executor.close()
111
112 async def close(self) -> None:
113 """Close and stop monitoring.
114
115 open() restarts the monitor after closing.
116 """
117 self.gc_safe_close()
118
119 async def join(self) -> None:
120 """Wait for the monitor to stop."""

Callers

nothing calls this directly

Calls 1

gc_safe_closeMethod · 0.95

Tested by

no test coverage detected