summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-30 00:39:01 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-30 00:39:01 (GMT)
commitfc37abf3ee3325d0f5f296f2ebf3bbc37a0b59f6 (patch)
tree83cf3175ac6ca06e931aad47f5a11965639d683d
parent934fa344c8f328498c03a8eafed8cc404ffcbef2 (diff)
parent188f2c0b75c69cfbe082f1eca2ed8f8a04fa1718 (diff)
downloadcpython-fc37abf3ee3325d0f5f296f2ebf3bbc37a0b59f6.zip
cpython-fc37abf3ee3325d0f5f296f2ebf3bbc37a0b59f6.tar.gz
cpython-fc37abf3ee3325d0f5f296f2ebf3bbc37a0b59f6.tar.bz2
Merge 3.4 (asyncio doc)
-rw-r--r--Doc/library/asyncio-dev.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
index 72a06f5..ce1275b 100644
--- a/Doc/library/asyncio-dev.rst
+++ b/Doc/library/asyncio-dev.rst
@@ -372,3 +372,14 @@ traceback where the task was created. Example of log in debug mode::
:ref:`Detect coroutine objects never scheduled <asyncio-coroutine-not-scheduled>`.
+
+Close transports
+----------------
+
+When a transport is no more needed, call its ``close()`` method to release
+resources.
+
+If a transport (or an event loop) is not closed explicitly, a
+:exc:`ResourceWarning` warning will be emitted in its destructor. The
+:exc:`ResourceWarning` warnings are hidden by default: use the ``-Wd`` command
+line option of Python to show them.