async def _handle_timer(self, timer: float, connection: QuicConnection) -> None: wait = max(0, timer - self.context.time()) await self.context.sleep(wait) if connection._close_at is not None: connection.handle_timer(now=self.context.time()) await self._handle_events(connection, None)
async def _handle_timer(self, connection: QuicConnection) -> None: if connection._close_at is not None: connection.handle_timer(now=self.now()) await self._handle_events(connection, None)