Skip to content

Commit 88490a9

Browse files
authored
Remove loop
1 parent 252017c commit 88490a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ async def main():
2424
print("Disk values:", data.values)
2525

2626

27-
loop = asyncio.get_event_loop()
28-
loop.run_until_complete(main())
27+
if __name__ == "__main__":
28+
asyncio.run(main())

0 commit comments

Comments
 (0)