1#!/usr/bin/env python3.7
2
3
4def f():
5    return (i * 2 async for i in arange(42))
6
7
8def g():
9    return (
10        something_long * something_long
11        async for something_long in async_generator(with_an_argument)
12    )
13
14
15async def func():
16    if test:
17        out_batched = [
18            i
19            async for i in aitertools._async_map(
20                self.async_inc, arange(8), batch_size=3
21            )
22        ]
23
24
25def awaited_generator_value(n):
26    return (await awaitable for awaitable in awaitable_list)
27
28
29def make_arange(n):
30    return (i * 2 for i in range(n) if await wrap(i))
31
32
33# output
34
35
36#!/usr/bin/env python3.7
37
38
39def f():
40    return (i * 2 async for i in arange(42))
41
42
43def g():
44    return (
45        something_long * something_long
46        async for something_long in async_generator(with_an_argument)
47    )
48
49
50async def func():
51    if test:
52        out_batched = [
53            i
54            async for i in aitertools._async_map(
55                self.async_inc, arange(8), batch_size=3
56            )
57        ]
58
59
60def awaited_generator_value(n):
61    return (await awaitable for awaitable in awaitable_list)
62
63
64def make_arange(n):
65    return (i * 2 for i in range(n) if await wrap(i))
66