anext(): Get Next Item From Asynchronous Iterator Function

1 Description

The Python anext function will return the next item from the given asynchronous iterator, or default if a default is provided and the iterator is empty.

The anext is the asynchronous version of the next function.

This function returns an awaitable object.

This document was last updated: