Skip to content

Commit

Permalink
Update server-extension-object-as-method-argument.py
Browse files Browse the repository at this point in the history
reduce cpu-load in endless loop
  • Loading branch information
thunderbug1 authored and oroulet committed Mar 23, 2021
1 parent cd6a5cb commit 84b4a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/server-extension-object-as-method-argument.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def callback(parent, in_extobj):

async with server:
while 1:
await asyncio.sleep(0)
await asyncio.sleep(1)

if __name__ == "__main__":
asyncio.run(main())
asyncio.run(main())

0 comments on commit 84b4a60

Please sign in to comment.