PyDocs

Nav

Python Runtime Services

anext

builtins

async function · Added in 3.10
  • anext(async_iterator, /)
  • anext(async_iterator, default, /)
Return the next item from the async iterator.

If default is given and the async iterator is exhausted,
it is returned instead of raising StopAsyncIteration.
0 Examples
No examples for builtins/anext.
See Also
No see-alsos for builtins/anext
0 Notes
No notes for anext