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

This commit is contained in:
Peter Hinch 2020-04-08 09:55:32 +01:00 committed by Damien George
parent d6f80963df
commit 7409467361
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ Additional functions
that *timeout* seconds. If *awaitable* is not a task then a task will be
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*.
This is a coroutine.