diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-02 01:26:08 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-02 01:26:08 +0200 |
commit | f2d4025a98f18739f58f726842c95893f9ceffac (patch) | |
tree | 9542b58f02161b5e19ef8245691e93069fd2937f /examples/shell.py | |
parent | 789a98e30ef59d7e1c0d6b3b6f6f2a141dcdaed5 (diff) | |
download | trollius-f2d4025a98f18739f58f726842c95893f9ceffac.tar.gz |
Examples: close the event loop at exit
Diffstat (limited to 'examples/shell.py')
-rw-r--r-- | examples/shell.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/shell.py b/examples/shell.py index 8ae30ca..7dc7caf 100644 --- a/examples/shell.py +++ b/examples/shell.py @@ -47,3 +47,4 @@ loop = asyncio.get_event_loop() loop.run_until_complete(cat(loop)) loop.run_until_complete(ls(loop)) loop.run_until_complete(test_call("bash", "-c", "sleep 3", timeout=1.0)) +loop.close() |