Merge 3.4 (asyncio doc)

This commit is contained in:
Victor Stinner 2015-04-03 17:10:17 +02:00
commit 32ed750952
1 changed files with 5 additions and 0 deletions

View File

@ -644,7 +644,12 @@ Task functions
cancels the task and raises :exc:`asyncio.TimeoutError`. To avoid the task
cancellation, wrap it in :func:`shield`.
If the wait is cancelled, the future *fut* is also cancelled.
This function is a :ref:`coroutine <coroutine>`, usage::
result = yield from asyncio.wait_for(fut, 60.0)
.. versionchanged:: 3.4.3
If the wait is cancelled, the future *fut* is now also cancelled.