Question 1 of 5
Which pair of methods defines the core asynchronous iterator protocol?
Asynchronous iteration uses __aiter__() to obtain an asynchronous iterator and __anext__() to request its next value.
Check async for, asynchronous iterator protocols, aiter(), anext(), and StopAsyncIteration.
Knowledge check
Check async for, asynchronous iterator protocols, aiter(), anext(), and StopAsyncIteration.
You can retake this quiz whenever you like.
Question 1 of 5
Question 2 of 5
async for do with each next value?Question 3 of 5
aiter(obj) return?Question 4 of 5
await anext(iterator, "done") reaches an exhausted iterator?Question 5 of 5
async for do with each next value?aiter(obj) return?await anext(iterator, "done") reaches an exhausted iterator?