Reading code: CPython's asyncio

I’m going to write more async code in Python soon. Since it’s always nice to know how things work under the hood, I took a closer look at CPython’s asyncio lib. This is not a coherent text, but rather a table of contents with short summaries and pointers into the code1. I simplify by looking only at a subset of the API and skipping a lot of parameters and corner cases to make this more readable. Maybe it can serve as a starting point if you’re interested in reading the code.


  1. I link to the latest commit at the time of writing.↩︎