o
    :Î®c;  ã                   @   sB   d dl mZ ddlmZ ddlmZ dedeee  fdd„Zd	S )
é    )ÚAsyncIteratoré   )ÚDeprecatedAsyncContextManager)Úget_asynclibÚsignalsÚreturnc                  G   s   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

    .. 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)r   © r	   ú;/tmp/pip-target-vg8gfxp4/lib/python/anyio/_core/_signals.pyr      s   r   N)Útypingr   Ú_compatr   Ú
_eventloopr   Úintr   r	   r	   r	   r
   Ú<module>   s    ÿ
þ