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

Method reset

pymongo/asynchronous/monitor.py:474–478  ·  view source on GitHub ↗

Reset the average RTT.

(self)

Source from the content-addressed store, hash-verified

472 return self._moving_average.get(), self._moving_min.get()
473
474 async def reset(self) -> None:
475 """Reset the average RTT."""
476 async with self._lock:
477 self._moving_average.reset()
478 self._moving_min.reset()
479
480 async def _run(self) -> None:
481 try:

Callers 4

_reset_connectionMethod · 0.45
_check_serverMethod · 0.45
closeMethod · 0.45
_runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected