K
Size: a a a
K
DI
p
AV
АЦ
DS
In [1]: import asyncio
In [2]: import aioconsole
In [3]:
In [3]:
In [3]: async def test():
...: await asyncio.sleep(5)
...: await aioconsole.ainput('Is this your line? ')
...: await asyncio.sleep(5)
In [4]: asyncio.run(test()) # sleeping, input, sleeping (synchronously)
АК
p
DS
aioconsole все асинхронныеp
DS
await как "ждать корутины, а пока результата нет делать другую работу"АК
АК
C
DS
gather от run отличается)DS
p
DS
EE
LS