Browse Source

docs/library: Note that uasyncio.wait_for() can raise exception.

pull/5902/head
Peter Hinch 5 years ago
committed by Damien George
parent
commit
7409467361
  1. 3
      docs/library/uasyncio.rst

3
docs/library/uasyncio.rst

@ -67,6 +67,9 @@ Additional functions
that *timeout* seconds. If *awaitable* is not a task then a task will be that *timeout* seconds. If *awaitable* is not a task then a task will be
created from it. created from it.
If a timeout occurs, it cancels the task and raises ``asyncio.TimeoutError``:
this should be trapped by the caller.
Returns the return value of *awaitable*. Returns the return value of *awaitable*.
This is a coroutine. This is a coroutine.

Loading…
Cancel
Save