Improve code

This commit is contained in:
Alex Kotov 2023-01-08 01:05:21 +04:00
parent 5c526f1371
commit 313221a2cf
No known key found for this signature in database
GPG key ID: 553C0EBBEB5D5F08

View file

@ -3,8 +3,11 @@
import asyncio import asyncio
from nio import AsyncClient from nio import AsyncClient
async def main(): def main():
asyncio.get_event_loop().run_until_complete(loop())
async def loop():
print(123) print(123)
if __name__ == '__main__': if __name__ == '__main__':
asyncio.get_event_loop().run_until_complete(main()) main()