Understanding Asyncio

Python's asyncio is based approached like an onion1: by methodically peeling apart the layers that build it up.

These notes are aimed at understanding how asyncio actually works, and not at being productive – or describing patterns to use asyncio effectively 2.

I've been writing about asyncio for the past several weeks in a fairly exploratory manner, following my nose and several different ways to look at what's happening.

This is an attempt at structuring those notes somewhat more coherently, and filling in some important gaps:


I haven't quite managed to figure that out myself.

view source