A thread waits by being put to sleep by the operating system. Asynchronous programming waits in a different way: one thread runs an event loop, and the code itself says, at each await, "I am waiting for something, run someone else meanwhile". With no thread switches and no locks for most state, one thread can look after thousands of connections. This lesson introduces coroutines, the objects that make that possible, and the loop that runs them.
More lessons in Complete Python Programming