Шаг 1 из 4+110 XP
async / await
Корутины и event loop.
async
import asyncio
async def hello():
await asyncio.sleep(0)
return "hi"
print(asyncio.run(hello()))Корутины и event loop.
import asyncio
async def hello():
await asyncio.sleep(0)
return "hi"
print(asyncio.run(hello()))