Если запустить 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
Bliss - Official | Android 15 | Nothing Phone (2)
✍️ Details:
- Version: 18.5
- Codename: #Pong
- Released: 21/4/25
🔽Download:Vanilla | Vanilla(Mirror) (Recovery Build)
🆘 Support : Here
⚙️ Installation: Here
📸 Screenshots: Here
🔖 Tags : #ROM#AOSP#Official#Bliss#V
✨ ChangelogsROM | Device
✍️ Note:
- Vanilla only
- clean flash recommended
- you can use this gapps: here, or flash your choice of gapps/microg if you know what you're doing
- ksu disabled bcs of official requirements
🏆 Credits
- @Ghosuto7 for DT
- Hellboy for Meteoric kernel
- Fabian for PA Glyph Implementation
- Testers
😎 Maintainer : @Drishal
🔔 Updates : @NothingPhone2Updates
💬 Chat : @NothingPhone2
Bliss - Official | Android 15 | Nothing Phone (2)
✍️ Details:
- Version: 18.2
- Codename: #Pong
- Released: 29/1/25
🔽 Download: [ Vanilla | Gapps ] (Recovery Build)
🆘 Support : Here
⚙️ Installation: Here
📸 Screenshots: Here
✨ Source Changelogs: Here
🔖 Tags : #ROM#AOSP#Official#Bliss#V
✨ Changelogs
- Update to NOS V3.0-250113-1723 firmware
- Improvements to system performance and stability
✍️ Note:
- Both Gapps and Vanilla build available
🏆 Credits
- Chandu for base DT
- Hellboy for Meteoric kernel
- Fabian for PA Glyph Implementation
- Testers
- Note: bliss is not patched with ksu due to official requirements
😎 Maintainer : @Drishal
🔔 Updates : @NothingPhone2Updates
💬 Chat : @NothingPhone2