python-async-interrupt 1.1.2-1 source package in Ubuntu
Changelog
python-async-interrupt (1.1.2-1) unstable; urgency=medium * New upstream release. * Update Standards-Version. -- Edward Betts <edward@4angle.com> Fri, 28 Jun 2024 11:43:46 +0100
Upload details
- Uploaded by:
- Debian Python Team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Python Team
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Oracular | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
python-async-interrupt_1.1.2-1.dsc | 2.3 KiB | c30a751dfd2339ee7fbbb0748ed81cc7b77a730123f71b9494b5713972beaa3e |
python-async-interrupt_1.1.2.orig.tar.gz | 21.0 KiB | 29d8422106f016d560d5fd9c6b5e05324789db85c1f2cd1e640104fffe4a976a |
python-async-interrupt_1.1.2-1.debian.tar.xz | 2.2 KiB | a0d96b5d7f31deb3189c51c2e88ed5c884bfaabdafe469f6cda35caebc17d170 |
Available diffs
- diff from 1.1.1-2 to 1.1.2-1 (8.6 KiB)
No changes file available.
Binary packages built by this source
- python3-async-interrupt: Interrupt context manager for asyncio
This Python module provides a context manager that can be used to interrupt
a block of code as soon as possible when a future is done.
.
The purpose of async_interrupt is to raise an exception as soon as possible
to avoid any race conditions. It is based loosely on async_timeout by Andrew
Svetlov and cpython asyncio.timeout.
.
Usage:
.
async with interrupt(future, ValueError, "message"):
future.set_result( None)
await asyncio.sleep(0)
.
This package is useful in scenarios where an exception needs to be raised
immediately to prevent race conditions during asynchronous operations.