Что делать, если ПО опроса работает только с COM-портами

Aiosetups May 2026

async def cleanup_all(self): for task in self._cleanup_tasks: await task()

async def init_redis(): return "client": "fake redis" aiosetups

await setup.setup_all() print("Resources ready:", setup._resources) async def cleanup_all(self): for task in self

async def close_postgres(resource): print(f"Closing resource") aiosetups

async def main(): setup = AsyncSetup() setup.add("db", init_postgres, close_postgres) setup.add("cache", init_redis)