8.19. AsyncIO Comprehensions

8.19.1. Recap

>>> 
... result = []
... async for i in aiter():
...     if i % 2:
...         result.append(i)

8.19.2. Example

>>> result = [i async for i in aiter() if i % 2]  
>>> result = [await fun() for fun in funcs]  
>>> result = {await fun() for fun in funcs}  
>>> result = {fun: await fun() for fun in funcs}  
>>> result = [await fun() for fun in funcs if await smth]  
>>> result = {await fun() for fun in funcs if await smth}  
>>> result = {fun: await fun() for fun in funcs if await smth}  
>>> result = [await fun() async for fun in funcs]  
>>> result = {await fun() async for fun in funcs}  
>>> result = {fun: await fun() async for fun in funcs}  
>>> result = [await fun() async for fun in funcs if await smth]  
>>> result = {await fun() async for fun in funcs if await smth}  
>>> result = {fun: await fun() async for fun in funcs if await smth}