TUTORIAL: Async Python, Good it is
summary
Shows runnable code on GitHub using Python’s built-in async IO (since 3.4, tested on 3.8–3.11) to prove async/await works for I/O-bound tasks: prints “hello” then “world,” uses asyncio.run once early to start the event loop, launches concurrent jobs with asyncio.gather and create_task, demonstrates timeout with asyncio.wait and cancellation, and shows “first completed” handling. Emphasizes async is not for CPU-bound work and warns against calling async from sync code repeatedly; demos work live.
AI-written summary · about
chapters (13)
- 0:00Introduction and setup
- 2:19Why use asynchrony
- 6:33Python async strategies
- 9:21Async IO basics
- 12:33Async IO for I/O workloads
- 15:51Async and await keywords
- 25:09Mixing async with sync code
- 31:19Running tasks in parallel
- 39:58Async IO gather method
- 51:38Timeout and cancel tasks
- 1:05:59Wait for first result
- 1:13:30Edge cases and cleanup
- 1:17:26Resources and Q&A








