Python · Concurrency and Parallelism · Intermediate · 30 min read
Python asyncio Foundations: Coroutines, the Event Loop, Tasks, gather and Common Mistakes
Understand asyncio from first principles. Learn coroutines and await, what the event loop does, tasks and concurrency with create_task and gather, TaskGroup and timeouts, async context managers and iterators, mixing in blocking code with to_thread, why one blocking call freezes everything, and how to debug and test async programs.
Create an account to start
Create a free account to see what this lesson covers
- Every free lesson in every section, in full
- Track your progress and pick up where you left off
- Free practice questions and an incident simulation
- Takes under a minute: name, email and a password
No card needed. Full access to Python is a paid upgrade you can choose later.