MCPcopy Index your code
hub / github.com/RustPython/RustPython / AIterWrap

Class AIterWrap

extra_tests/snippets/syntax_async.py:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21class AIterWrap:
22 def __init__(self, obj):
23 self._it = iter(obj)
24
25 def __aiter__(self):
26 return self
27
28 async def __anext__(self):
29 try:
30 value = next(self._it)
31 except StopIteration:
32 raise StopAsyncIteration
33 return value
34
35SLEEP_UNIT = 0.1
36

Callers 1

aFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected