MCPcopy Index your code
hub / github.com/python/cpython / AIter

Class AIter

Lib/test/test_coroutines.py:1804–1812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1802 class Done(Exception): pass
1803
1804 class AIter(tuple):
1805 i = 0
1806 def __aiter__(self):
1807 return self
1808 async def __anext__(self):
1809 if self.i >= len(self):
1810 raise StopAsyncIteration
1811 self.i += 1
1812 return self[self.i - 1]
1813
1814 result = []
1815 async def foo():

Callers 1

fooMethod · 0.70

Calls

no outgoing calls

Tested by 1

fooMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…