Async Itertools

aiter(source: AsyncIterable[_T], /) AsyncIterator[_T][source]
aiter(func: Callable[[], Awaitable[_T]], sentinel: _T | _Sentinel, /) AsyncIterator[_T]

Analogous to the builtin iter().

As of Python 3.10, this is a small extension accepting an explicit sentinel while the base implementation without sentinel uses the builtin aiter().