If you were looking for aiosetup in the context of the Nintendo Switch console (custom firmware), you may be referring to a different set of tools. Please verify your specific hardware context.
async def main(): async with aiosetup( "name": "db", "init": init_postgres, "cleanup": close_postgres, "name": "redis", "init": init_redis ) as resources: db = resources["db"] redis = resources["redis"] # work with db & redis aiosetups
async def init_postgres(): # Imagine asyncpg.connect(...) return "conn": "fake pg connection" If you were looking for aiosetup in the
await setup.cleanup_all()