[ trixie ]
[ sid ]
[ ソース: python-async-interrupt ]
パッケージ: python3-async-interrupt (1.2.2-1)
python3-async-interrupt に関するリンク
Debian の資源:
python-async-interrupt ソースパッケージをダウンロード:
- [python-async-interrupt_1.2.2-1.dsc]
- [python-async-interrupt_1.2.2.orig.tar.gz]
- [python-async-interrupt_1.2.2-1.debian.tar.xz]
メンテナ:
外部の資源:
- ホームページ [github.com]
類似のパッケージ:
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.
その他の python3-async-interrupt 関連パッケージ
|
|
|
|
-
- dep: python3
- 対話式の高レベルオブジェクト指向言語 (デフォルト python3 バージョン)