Если запустить 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
Bitcoin on #Bithumb suddenly dropped, trading over 10% below other markets.
Reports say a staff mistake during an airdrop sent 2,000 $BTC($133M) instead of a small KRW reward.
Some users sold it right away, causing the price to drop fast.
JUST IN : 💰🚨Bitcoin on #Bithumb suddenly dropped, trading over 10% below other markets.
Reports say a staff mistake during an airdrop sent 2,000 $BTC($133M) instead of a small KRW reward.
Some users sold it right away, causing the price to drop fast.
➖➖➖➖➖➖➖➖➖
📣@cryptonewstel
✨Vip join⭐️
🚨 DWF Labs has deposited all 170K $CYBER to #Bithumb at $8.6 on average ($1.46M) in 7 transactions over the past 24 hours.
➡️ DWF Labs will earn an estimated profit of $697K (+91.1%) from $CYBER if truly sold just now.
👉 More details: https://platform.spotonchain.ai/signal-details/dwf-labs-closed-the-first-cyber-deal-for-great-profit-516
👉 Visit our discord: https://discord.com/invite/Xh7cReej7n