utils(asyncio): simplify watchdog helpers

This commit is contained in:
Aleix Conchillo Flaqué
2025-06-26 09:29:33 -07:00
parent 4d34aa7cd6
commit 3de4f22d34
37 changed files with 126 additions and 184 deletions

View File

@@ -687,9 +687,7 @@ class GeminiMultimodalLiveLLMService(LLMService):
#
async def _receive_task_handler(self):
async for message in WatchdogAsyncIterator(
self._websocket, reseter=self, watchdog_enabled=self.watchdog_timers_enabled
):
async for message in WatchdogAsyncIterator(self._websocket, manager=self.task_manager):
evt = events.parse_server_event(message)
# logger.debug(f"Received event: {message[:500]}")
# logger.debug(f"Received event: {evt}")