python-async-timeout 4.0.3-ok1 source package in openKylin
Changelog
python-async-timeout (4.0.3-ok1) nile; urgency=medium * Build for openkylin. -- rtlhq <nobelxyz@163.com> Sat, 02 Sep 2023 18:10:25 +0800
python-async-timeout (4.0.3-ok1) nile; urgency=medium * Build for openkylin. -- rtlhq <nobelxyz@163.com> Sat, 02 Sep 2023 18:10:25 +0800
Series | Published | Component | Section | |
---|---|---|---|---|
Nile V2.0 | release | main | python |
File | Size | SHA-256 Checksum |
---|---|---|
python-async-timeout_4.0.3.orig.tar.gz | 12.5 KiB | c63f1252d5fa878fdceb7a6894f1df6a73f92546e52a0b7999a5de429fd64ff8 |
python-async-timeout_4.0.3-ok1.debian.tar.xz | 1.4 KiB | baecacc33c8392e3eb545f3ad89f3b01279c6fc8bd60d0bf9d30409c4411ba03 |
python-async-timeout_4.0.3-ok1.dsc | 1.9 KiB | 01e0221c67347b87f19592c04a4559e52ac47836fe20ca9398333f5dada7a4e0 |
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()