Commit 188f2c0b authored by Victor Stinner's avatar Victor Stinner

asyncio doc: document the new ResourceWarning warnings

parent f2e43cbb
......@@ -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.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment