Reading lines from a socket, rows from a database or messages from a queue involves waiting between items. A normal for loop cannot wait in the middle, so Python has asynchronous versions of the iteration and context manager protocols. They are the same ideas as in Modules 12 and 15, with await allowed inside. If you know generators and with statements, there is almost nothing new to learn but the keywords.
More lessons in Complete Python Programming