File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,21 @@ description: Return an asynchronous iterator for an asynchronous iterable. Equiv
14
14
From the <a target="_blank" href="https://docs.python.org/3/library/functions.html#aiter">Python 3 documentation</a>
15
15
</base-disclaimer-title >
16
16
<base-disclaimer-content >
17
+ <br/>
17
18
Return an asynchronous iterator for an asynchronous iterable. Equivalent to calling x.__aiter__().
18
19
</base-disclaimer-content >
19
20
</base-disclaimer >
20
21
21
- <!-- remove this tag to start editing this page -->
22
- <empty-section />
23
- <!-- remove this tag to start editing this page -->
22
+ <base-disclaimer >
23
+ <base-disclaimer-content >
24
+ <br/>
25
+ aiter() is an async equivalent of iter(). <br/> Here's an example showing the use of aiter()
26
+ </base-disclaimer-content >
27
+ </base-disclaimer >
28
+
29
+ ``` async def aitersync(iterable):
30
+ results = []
31
+ async for x in aiter(iterable):
32
+ results.append(x)
33
+ return iter(results)
34
+ ```
You can’t perform that action at this time.
0 commit comments