Если запустить REPL с модулем asyncio, то вы входите в особый асинхронный REPL.
user@host:~$ python -m asyncio
asyncio REPL 3.12.7 ...
Use "await" directly instead of "asyncio.run()".
>>> import asyncio
>>>
В этом режиме
- создаётся и настраивается event loop
- уже импортирован asyncio
- работает await на верхнем уровне
То есть такая команда сработает без ошибок!
await asyncio.sleep(3)
Удобно для тестирования асинхронных функций без создания ивентлупов и остальной обвязки.
Работает в: 3.8+
#tricks#async
A newly created wallet withdrew 139,557 $HYPE worth $5.49M from #Gate. Address: 0xee0a18b394ece1d7be81be15d6cec3ac7707b71c https://x.com/OnchainLens/status/2034936951275757877 Follow @onchainlens for more onchain updates
A newly created wallet withdrew 139,557 $HYPE worth $5.49M from #Gate.
Address: 0xee0a18b394ece1d7be81be15d6cec3ac7707b71c
https://x.com/OnchainLens/status/2034936951275757877
Follow @onchainlens for more onchain updates
After being dormant for 8 months, a whale deposited 2,11,343 $TRUMP worth $847.4K into #Gate, losing $1.28M.
The whale initially withdrew these $TRUMP for $2.13M from #Gate.
The whale also holds 18,787 $SOL ($1.66M), losing $1.62M.
Address - 7HqAk2h4cJZqyKdbzKEqm4JeWBnKMitVrwFMoEgqE93D
https://x.com/OnchainLens/status/2033095024649601045
Follow @onchainlens for more onchain updates
Wallet 0x011 (likely @ambergroup_io) withdrew 3M $SAFE ($6.72M) from #Gate.io at $2.25 for the first time 6 hours ago.
Notably, the $SAFE price has dropped ~36% since it became transferrable on April 23, 2024. Was this a good entry? 🤔
Follow @spotonchain and set alerts for Amber Group now via https://platform.spotonchain.ai/en/entity/80