mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
Sync with asyncio
This commit is contained in:
parent
c07b16b40f
commit
9d976fa75f
1 changed files with 1 additions and 1 deletions
|
|
@ -744,7 +744,7 @@ def timeout(timeout, *, loop=None):
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
>>> with asyncio.timeout(0.001):
|
>>> with asyncio.timeout(0.001):
|
||||||
>>> yield from coro()
|
... yield from coro()
|
||||||
|
|
||||||
|
|
||||||
timeout: timeout value in seconds
|
timeout: timeout value in seconds
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue