Если запустить 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
UXLINK FujiCard💳 Reward Campaign is LIVE!
Whether you apply for this crypto payment card (perfect for daily use) OR refer a friend to sign up—you’ll earn X-score AND $UXLINK airdrops! 🚀
Don’t miss out—join now: 👉https://dapp.uxlink.io/card/referral
#UXLINK#FujiCard#CryptoCard#Airdrop
📱RedotPay: Crypto Card for Everyday Purchases on TON
Card deposits are available in 🤑 $USDT and 🪙 $USDC on Blockchains:
🪙 TON,
🪙 Solana,
🤑 Tron,
🤑 BNB Smart Chain,
🪙 Ethereum,
🪙 Polygon and Arbitrum
You can spend USDT/USDC directly through the #RedotPay app or card, compatible with Google Pay, Apple Pay, Alipay and PayPal, giving you access to more than 🛒 130 million merchant partners worldwide, including Starbucks, Amazon, AliExpress, Airbnb, TikTok, Steam and many more.
📱Install the app and get a RedotPay crypto card💳
💵Welcome bonus $5 with promo code: j05mm
#TON#CryptoCard#ApplePay
📱Get Ultimate Crypto #VISA Card!
Spend anywhere, anytime. Instantly transfer $USDT, $USDC, $BTC, $ETH or $TON directly to #RedotPay and use it like cash!
💳Apply for your card now!
Use💵5 Promo Code: j05mm
#USDT#ETH#BTC#CryptoCard