Если запустить 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
🚀 Experience the Freedom of Trading!
📉With SLEX, you can enjoy affordable trading with ZERO spread. Trade your favorite cryptocurrencies as BTC, ETH and XRP without worrying about high fees eating your profits!💱
💰Say goodbye to excessive trading costs and register on SLEX Now and get 20$ welcome bonus till official launch - 17 of August! 💼
#SLEX#Trading#ZeroSpread#CryptoExchange
Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter
🚀 SLEX Hits $10M Daily Trading Volumes Just 3 Days In! 🚀
📈Get ready to witness history in the making! Just three days after the official launch of the SLEX exchange, we're thrilled to announce an incredible milestone: our daily trading volumes have soared to an impressive 10 000 000 USDT!📊
❤️The energy and enthusiasm from traders and investors like you have propelled us to new heights. This phenomenal achievement underscores our platform's immense potential and our community's unwavering support!🌈
🤝We invite you to join SLEX platform, deposit your account, and enjoy zero-spread trading on the spot market!
#SLEX#CryptoTrading#zerospread#SLEXtrading
Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter