Если запустить 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
⚡️bemo: Final Opportunity for Genesis ONIONs
#ONION#NFT
The bemo channel announces the last chance to mint Genesis ONIONs NFTs, linked with the ONTON ecosystem. These NFTs offer access to an ONION airdrop, private sale, and voting power within the ONIONVerse. The deadline to mint is April 21.
Source: link
@tonlines
ONTON Launches ONION Genesis NFT Collection in Partnership with TON Society
TON Society SBT holders now get exclusive 24-hour early access to the mint — just one of the many perks of being part of the #TONSociety🔠
Plus, a portion of the upcoming $ONION airdrop is reserved for Genesis NFT holders. The more NFTs you collect, the greater your final reward.
⚙️How it works:
• Open the app
• Pay 5 TON to spin
• Unwrap a Gold, Silver, or Bronze ONION NFT
• Complete a full set to boost your airdrop multiplier
💎And this is just the beginning. More collabs and exclusive benefits for SBT holders are on the way
#ONION#TON#SBT#Airdrop