summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-dev.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-01 01:36:43 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-01 01:36:43 (GMT)
commit45b27ed53db986d7829d2d0676ae7eb1fc567ed4 (patch)
tree8aa4284ae62484e05e961d1e2931ce130bc452d8 /Doc/library/asyncio-dev.rst
parent55effc6dd00f456362312c8df32ad2bb1a62ed48 (diff)
downloadcpython-45b27ed53db986d7829d2d0676ae7eb1fc567ed4.zip
cpython-45b27ed53db986d7829d2d0676ae7eb1fc567ed4.tar.gz
cpython-45b27ed53db986d7829d2d0676ae7eb1fc567ed4.tar.bz2
asyncio doc: document the granularity of the event loop
Improve also the "Logging" section
Diffstat (limited to 'Doc/library/asyncio-dev.rst')
-rw-r--r--Doc/library/asyncio-dev.rst17
1 files changed, 11 insertions, 6 deletions
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
index 73cc38a..868e3f8 100644
--- a/Doc/library/asyncio-dev.rst
+++ b/Doc/library/asyncio-dev.rst
@@ -7,6 +7,8 @@ Asynchronous programming is different than classical "sequential" programming.
This page lists common traps and explains how to avoid them.
+.. _asyncio-handle-blocking:
+
Handle correctly blocking functions
-----------------------------------
@@ -21,17 +23,20 @@ An executor can be used to run a task in a different thread or even in a
different process, to not block the thread of the event loop. See the
:func:`BaseEventLoop.run_in_executor` function.
+.. seealso::
-.. _asyncio-logger:
+ The :ref:`Delayed calls <asyncio-delayed-calls>` section details how the
+ event loop handles time.
-Logger
-------
-.. data:: asyncio.logger.log
+.. _asyncio-logger:
+
+Logging
+-------
- :class:`logging.Logger` instance used by :mod:`asyncio` to log messages.
+The :mod:`asyncio` module logs information with the :mod:`logging` module in
+the logger ``'asyncio'``.
-The logger name is ``'asyncio'``.
.. _asyncio-coroutine-not-scheduled: