Coroutine Concurrency in Python 3 with asyncio
summary
Builds a minimal coroutine scheduler from scratch that runs Lucas sequence generators and a naive prime tester, shows the single-bare-yield bug and why every called function must be nonblocking, then mechanically refactors those generators into Python 3 async/await backed by asyncio, replacing yield-from → await. Covers futures/tasks, why to use ensure_future/gather, transports, protocol vs stream APIs, and a working telnet-style chatroom; about 80% code and live demo.
AI-written summary · about
chapters (8)
- 0:00Introduction to async
- 3:24Concepts of concurrency
- 10:28Building a custom scheduler
- 23:40Managing task execution
- 35:34Refactoring to async/await
- 38:56Advanced async features
- 48:06Practical I/O and demo
- 59:02Conclusion and Q&A
related talks
59mGet to grips with asyncio in Python 3
01h 29mStandardised Coroutine Concurrency in Python 3
35mHow Do Python Coroutines Work?
50mUsing Asyncio in Python 3
24mA Crash Course in Python 3's asyncio
57mFear and Awaiting in Async: A Savage Journey to the Heart of the Coroutine Dream
32mAdvanced asyncio: Solving Real-World Production Problems
40mAdvanced asyncio: Solving Real-world Production Problems
