On this page
article
Async Gather
Run coroutines concurrently.
Category: asyncio
Problem
Run coroutines concurrently.
Solution
results = await asyncio.gather(coro1(), coro2())
Notes
- Adapt variable names and paths to your project
- Add error handling for production use
- See related chapters in the Learning Path