summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-eventloop.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-25 14:01:33 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-01-25 14:01:33 (GMT)
commitf67255ab94742b017697bdedfd4c8eb25dac6f82 (patch)
tree391dc1e1c5a305ae4cc9bccec135a9bb6206e37f /Doc/library/asyncio-eventloop.rst
parent635fca9704b102a97233a3af18231a7b649d0169 (diff)
downloadcpython-f67255ab94742b017697bdedfd4c8eb25dac6f82.zip
cpython-f67255ab94742b017697bdedfd4c8eb25dac6f82.tar.gz
cpython-f67255ab94742b017697bdedfd4c8eb25dac6f82.tar.bz2
Issue #20311: asyncio: Add a granularity attribute to BaseEventLoop: maximum
between the resolution of the BaseEventLoop.time() method and the resolution of the selector. The granuarility is used in the scheduler to round time and deadline.
Diffstat (limited to 'Doc/library/asyncio-eventloop.rst')
-rw-r--r--Doc/library/asyncio-eventloop.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index 953fa49..4d26f4e 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -144,6 +144,12 @@ a different clock than :func:`time.time`.
Return the current time, as a :class:`float` value, according to the
event loop's internal clock.
+.. attribute:: BaseEventLoop.granularity
+
+ Granularity of the time: maximum between the resolution of the
+ :meth:`BaseEventLoop.time` method and the resolution of the selector (see
+ :attr:`selectors.BaseSelector.resolution`).
+
.. seealso::
The :func:`asyncio.sleep` function.