Last Updated: June 6, 2026
asyncio is Python's standard library for writing concurrent code that runs in a single thread. It's the right tool when your program spends most of its time waiting for I/O: HTTP responses, database queries, file reads, email deliveries. This lesson covers what asyncio is, why it exists, and how the three building blocks async def, await, and asyncio.run fit together.