Pure-Python implementation of anext() for testing purposes.
Closely matches the builtin anext() C implementation.
Can be used to compare the built-in implementation of the inner coroutines machinery
to C-implementation of __anext__() and send() or throw() on the returned
generator.
| Name | Type | Description |
|---|---|---|
iterator* | AsyncIterator[T] | The async iterator to advance. |
default | T | Any | Default: _no_defaultThe value to return if the iterator is exhausted. If not provided, a |