mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Merge latest Tulip into asyncio
- Make the new granularity attribute private - Simplify BaseEventLoop._run_once(): avoid math.ceil(), use simple arithmetic instead
This commit is contained in:
parent
3c2f175ec4
commit
669eeaf933
4 changed files with 5 additions and 16 deletions
|
@ -144,12 +144,6 @@ 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue