ID EN
Built-in Functions

anext

Python 3.11

When awaited, return the next item from the given asynchronous iterator, or default if given and the iterator is exhausted.

Syntax

PYTHON
awaitable anext(async_iterator)

See Also

asynchronous iterator next() __anext__() awaitable StopAsyncIteration