Asynchronous Iterators and Iterables in Python - Real Python
Briefly

An object that implements the .__aiter__() and .__anext__() [special] methods. .__anext__() must return an awaitable object. [An] async for [loop] resolves the awaitables returned by an asynchronous iterator's .__anext__() method until it raises a StopAsyncIteration exception.
In these tutorials, you'll gain the required background to prepare for exploring asynchronous iterators and iterables in more depth.
Async iterators power asynchronous iteration in Python, requiring the implementation of .__aiter__() and .__anext__() methods to handle awaitables and drive async for loops.
Read at Realpython
[
]
[
|
]