diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-28 23:32:40 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-28 23:32:40 +0100 |
| commit | f40c66334d175b34143609c0926346c793d089b2 (patch) | |
| tree | f8d17af3a741083b875354856edea4aaa3d5e17f /Doc/library/asyncio-dev.rst | |
| parent | 38b0d5a778c8e296374bd59e6f8bb840d317d6e0 (diff) | |
| download | cpython-git-f40c66334d175b34143609c0926346c793d089b2.tar.gz | |
asyncio doc: close the loop at exit
Diffstat (limited to 'Doc/library/asyncio-dev.rst')
| -rw-r--r-- | Doc/library/asyncio-dev.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst index 74bbc28a73..73cc38a830 100644 --- a/Doc/library/asyncio-dev.rst +++ b/Doc/library/asyncio-dev.rst @@ -169,6 +169,7 @@ operations:: asyncio.async(test()) loop.run_forever() print("Pending tasks at exit: %s" % asyncio.Task.all_tasks(loop)) + loop.close() Expected output:: |
