Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #15844

Bug#1071442: ITP: python-async-interrupt -- Interrupt context manager for asyncio

From Edward Betts <edward@4angle.com>
Newsgroups linux.debian.bugs.dist, linux.debian.devel, linux.debian.maint.python
Subject Bug#1071442: ITP: python-async-interrupt -- Interrupt context manager for asyncio
Date 2024-05-19 14:30 +0200
Message-ID <IFNPP-eplN-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 3 groups.

Show all headers | View raw


Package: wnpp
Severity: wishlist
Owner: Edward Betts <edward@4angle.com>
X-Debbugs-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org

* Package name    : python-async-interrupt
  Version         : 1.1.1
  Upstream Author : J. Nick Koston <nick@koston.org>
* URL             : https://github.com/bdraco/async_interrupt
* License         : Apache-2.0
  Programming Lang: Python
  Description     : 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.

I plan to maintain this package as part of the Python team.

Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread


Thread

Bug#1071442: ITP: python-async-interrupt -- Interrupt context manager for asyncio Edward Betts <edward@4angle.com> - 2024-05-19 14:30 +0200

csiph-web