Aiosetups New! -

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

| Package | Purpose | |----------------|--------------------------------------| | async-lru | Async caching | | aiofiles | Async file I/O | | aioredis | Redis client | | asyncpg | PostgreSQL driver | | anyio / asyncio | Low-level async primitives | aiosetups

class AsyncSetup: """Register and manage async initializers and cleaners.""" def (self): self._init_tasks: List[Callable[[], Any]] = [] self._cleanup_tasks: List[Callable[[], Any]] = [] self._resources: Dict[str, Any] = {} async def cleanup_all(self): for task in self