Если запустить 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
🧬Welcome to RGB World!! 🧬
🎟Want to get the ticket to RGB's Ecosystem?🎟
Join Now👉https://app.galxe.com/quest/iVUN3rpKWghejAxArpB9Xy/GCS9Xtg79w
💰You will share a 520,000 $RNA Airdrop Prize Pool and experience the amazing opportunities BiHelix_ has in store for you in the coming weeks! 🪂🪂
#Bitcoin $BTC #UTXO#Giveaways2024
CELL Studio Secures Series A Funding
CELL Studio, a modular Bitcoin layer 2 platform, has successfully closed its Series A funding round with contributions from UTXO Management, CMS Holdings, and PAKA. The amount raised remains undisclosed.
!Funding Round
#Funding#Bitcoin#Layer2#CELLStudio#UTXO#Cryptocurrency#CMSHoldings#PAKA