Definition
An object that implements the __aiter__()
and __anext__()
methods. __anext__
must return an awaitable object.
async for
resolves the awaitables returned by an asynchronous
iterator’s __anext__()
method until it raises a
StopAsyncIteration
exception. Introduced by PEP 492.