Skip to content

Commit 55368ea

Browse files
committed
Update examples to close client
1 parent ecfca17 commit 55368ea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ Quick Example
4646
for n in players:
4747
print(n, n.tag)
4848
49+
async def main():
50+
await get_some_player('tag')
51+
await get_five_clans('name')
52+
await client.close()
53+
4954
if __name__ == '__main__':
5055
loop = asyncio.get_event_loop()
51-
loop.run_until_complete(get_some_player('tag'))
52-
loop.run_until_complete(get_five_clans('name'))
56+
loop.run_until_complete(main())
5357
5458
For more examples see the examples directory
5559

0 commit comments

Comments
 (0)