mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio doc: document the granularity of the event loop
Improve also the "Logging" section
This commit is contained in:
parent
55effc6dd0
commit
45b27ed53d
3 changed files with 31 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue