Debian Codegraph @

debian/control

raw
1 Source: python-async-interrupt
2 Maintainer: Debian Python Team <[email protected]>
3 Uploaders:
4 Edward Betts <[email protected]>,
5 Section: python
6 Priority: optional
7 Build-Depends:
8 debhelper-compat (= 13),
9 dh-sequence-python3,
10 pybuild-plugin-pyproject,
11 python3-all,
12 python3-poetry-core,
13 Build-Depends-Indep:
14 python3-pytest <!nocheck>,
15 python3-pytest-asyncio <!nocheck>,
16 python3-pytest-cov <!nocheck>,
17 Rules-Requires-Root: no
18 Standards-Version: 4.7.1
19 Homepage: https://github.com/Bluetooth-Devices/async_interrupt
20 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-async-interrupt
21 Vcs-Git: https://salsa.debian.org/python-team/packages/python-async-interrupt.git
22
23 Package: python3-async-interrupt
24 Architecture: all
25 Depends:
26 ${misc:Depends},
27 ${python3:Depends},
28 Description: Interrupt context manager for asyncio
29 This Python module provides a context manager that can be used to interrupt
30 a block of code as soon as possible when a future is done.
31 .
32 The purpose of async_interrupt is to raise an exception as soon as possible
33 to avoid any race conditions. It is based loosely on async_timeout by Andrew
34 Svetlov and cpython asyncio.timeout.
35 .
36 Usage:
37 .
38 async with interrupt(future, ValueError, "message"):
39 future.set_result(None)
40 await asyncio.sleep(0)
41 .
42 This package is useful in scenarios where an exception needs to be raised
43 immediately to prevent race conditions during asynchronous operations.