Шаг 1 из 4+130 XP
Async генераторы
async for, yield в корутине.
async gen
async def stream():
for i in range(3):
yield i
async for x in stream():
print(x)async for, yield в корутине.
async def stream():
for i in range(3):
yield i
async for x in stream():
print(x)