from hans import PyLoopOrchestrator, PyTask, PyTaskGroup import asyncio async def main(): a = PyTask(lambda : print("a")) b = PyTask(lambda : print("b")) c = PyTask(lambda : print("c")) group = PyTaskGroup([a, b], PyTaskGroup([c])) orch = PyLoopOrchestrator() status = await orch.process_until_finished(group) print(status) asyncio.run(main())