asyncio doc: document the granularity of the event loop

Improve also the "Logging" section
This commit is contained in:
Victor Stinner 2014-02-01 02:36:43 +01:00
parent 55effc6dd0
commit 45b27ed53d
3 changed files with 31 additions and 7 deletions

View file

@ -441,6 +441,9 @@ Task functions
time (in seconds). If *result* is provided, it is produced to the caller
when the coroutine completes.
The resolution of the sleep depends on the :ref:`granularity of the event
loop <asyncio-delayed-calls>`.
.. function:: shield(arg, \*, loop=None)
Wait for a future, shielding it from cancellation.