1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Source: python-async-timeout
Section: python
Priority: optional
Maintainer: Piotr Ożarowski <piotr@debian.org>
Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Build-Depends: debhelper (>= 9), dh-python,
python3-all,
python3-setuptools,
python3-pytest-runner,
Standards-Version: 3.9.8
Homepage: https://github.com/aio-libs/async_timeout/
Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-async-timeout.git
Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/python-async-timeout.git
Package: python3-async-timeout
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends},
Recommends: ${python3:Recommends}
Suggests: ${python3:Suggests}
Description: timeout context manager for asyncio programs in Python
The context manager is useful in cases when you want to apply timeout
logic around block of code or in cases when asyncio.wait_for() is
not suitable. Also it's much faster than asyncio.wait_for()
because timeout doesn't create a new task.
.
Example:
.
with timeout(1.5):
yield from inner()
|