todas as opções
trixie  ] [  sid  ]
[ Fonte: python-async-interrupt  ]

Pacote: python3-async-interrupt (1.2.2-1)

Links para python3-async-interrupt

Screenshot

Recursos de Debian:

Baixe o pacote-fonte python-async-interrupt:

Mantenedores(as):

Fontes externas:

Pacotes similares:

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.

Outros pacotes relacionados a python3-async-interrupt

  • depende
  • recomenda
  • sugere
  • melhora

Download de python3-async-interrupt

Baixe para todas as arquiteturas disponíveis
Arquitetura Tamanho do pacote Tamanho instalado Arquivos
all 9.0 kB35.0 kB [lista de arquivos]