summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-07 22:34:58 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-07 22:34:58 (GMT)
commit85310a50a998af645acf0657737076eb064452bb (patch)
tree6b263f4a66877a3f9d824ba2744f87e8dfbbb141 /Doc/library
parentc489e83432ef29c9c2a638c4ca290b308e5921e4 (diff)
downloadcpython-85310a50a998af645acf0657737076eb064452bb.zip
cpython-85310a50a998af645acf0657737076eb064452bb.tar.gz
cpython-85310a50a998af645acf0657737076eb064452bb.tar.bz2
Issue #20505: Remove resolution and _granularity from selectors and asyncio
* Remove selectors.BaseSelector.resolution attribute * Remove asyncio.BaseEventLoop._granularity attribute
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/asyncio-eventloop.rst13
-rw-r--r--Doc/library/selectors.rst4
2 files changed, 0 insertions, 17 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index 6c3c2df..507d5e3 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -118,19 +118,6 @@ Which clock is used depends on the (platform-specific) event loop
implementation; ideally it is a monotonic clock. This will generally be
a different clock than :func:`time.time`.
-The granularity of the event loop depends on the resolution of the
-:meth:`~BaseEventLoop.time` method and the resolution of the selector. It is
-usually between 1 ms and 16 ms. For example, a granularity of 1 ms means that
-in the best case, the difference between the expected delay and the real
-elapsed time is between -1 ms and +1 ms: a call scheduled in 1 nanosecond may
-be called in 1 ms, and a call scheduled in 100 ms may be called in 99 ms.
-
-The granularity is the best difference in theory. In practice, it depends on
-the system load and the the time taken by tasks executed by the event loop.
-For example, if a task blocks the event loop for 1 second, all tasks scheduled
-in this second will be delayed. The :ref:`Handle correctly blocking functions
-<asyncio-handle-blocking>` section explains how to avoid such issue.
-
.. method:: BaseEventLoop.call_later(delay, callback, *args)
diff --git a/Doc/library/selectors.rst b/Doc/library/selectors.rst
index 4c322bd..98377c8 100644
--- a/Doc/library/selectors.rst
+++ b/Doc/library/selectors.rst
@@ -98,10 +98,6 @@ below:
:class:`BaseSelector` and its concrete implementations support the
:term:`context manager` protocol.
- .. attribute:: resolution
-
- Resolution of the selector in seconds.
-
.. method:: register(fileobj, events, data=None)
Register a file object for selection, monitoring it for I/O events.