Run multiple workers
import asyncio async def worker(name): while True: print(f"{name} working") await asyncio.sleep(1) async def main(): await asyncio.gather( worker("A"), worker("B"), worker("C"), ) asyncio.run(main())
There was an error while loading. Please reload this page.