7 · 12 lessons
Concurrency and async
Threads, pools, locks and queues, then asyncio: tasks, timeouts, task groups, rate limits, async iterators and to_thread.
Progress and your code are kept in this browser only.
- 1Threads and join
- 2Thread pools and futures
- 3Race conditions and locks
- 4Queues for producers and consumers
- 5async and await
- 6Tasks and gather
- 7Timeouts and cancellation
- 8TaskGroup and structured concurrency
- 9Semaphores and rate limits
- 10Async generators and async for
- 11Async context managers
- 12Blocking code and to_thread