← back to Atmos Game
assets/gen/.venv/lib/python3.12/site-packages/anyio/_core/__pycache__/_signals.cpython-312.pyc
26 lines
�
c�bj� � �P � d dl mZ d dlmZ d dlmZ d dlmZ ddlm Z d d�Z
y)
� )�annotations)�
AsyncIterator)�AbstractContextManager)�Signals� )�get_async_backendc �0 � t � j | � S )a�
Start receiving operating system signals.
:param signals: signals to receive (e.g. ``signal.SIGINT``)
:return: an asynchronous context manager for an asynchronous iterator which yields
signal numbers
:raises NoEventLoopError: if no supported asynchronous event loop is running in the
current thread
.. warning:: Windows does not support signals natively so it is best to avoid
relying on this in cross-platform applications.
.. warning:: On asyncio, this permanently replaces any previous signal handler for
the given signals, as set via :meth:`~asyncio.loop.add_signal_handler`.
)r �open_signal_receiver)�signalss �k/Users/macstudio3/Projects/atmos-game/assets/gen/.venv/lib/python3.12/site-packages/anyio/_core/_signals.pyr
r
s � �&