Add a RTT sample.
(self, sample: float)
| 461 | await self._pool.reset() |
| 462 | |
| 463 | async def add_sample(self, sample: float) -> None: |
| 464 | """Add a RTT sample.""" |
| 465 | async with self._lock: |
| 466 | self._moving_average.add_sample(sample) |
| 467 | self._moving_min.add_sample(sample) |
| 468 | |
| 469 | async def get(self) -> tuple[Optional[float], float]: |
| 470 | """Get the calculated average, or None if no samples yet and the min.""" |
no outgoing calls
no test coverage detected