Ë
    Eü´jK  ã                  ój   — d dl mZ d dlmZ d dlmZ d dlmZ ddlm	Z	 erddl
mZmZ  G d„ d	e	«      Zy
)é    )Úannotations)Úabstractmethod)ÚSignals)ÚTYPE_CHECKINGé   )ÚAsyncResource)ÚByteReceiveStreamÚByteSendStreamc                  óä   — e Zd ZdZedd„«       Zedd„«       Zedd„«       Zedd„«       Ze	edd„«       «       Z
e	edd„«       «       Ze	edd„«       «       Ze	edd	„«       «       Ze	edd
„«       «       Zy)ÚProcessz5An asynchronous version of :class:`subprocess.Popen`.c              ƒ  ó   K  — y­w)z^
        Wait until the process exits.

        :return: the exit code of the process
        N© ©Úselfs    úU/root/workspace/ytshorts/venv/lib/python3.12/site-packages/anyio/abc/_subprocesses.pyÚwaitzProcess.wait   s   è ø� ùs   ‚c                 ó   — y)zó
        Terminates the process, gracefully if possible.

        On Windows, this calls ``TerminateProcess()``.
        On POSIX systems, this sends ``SIGTERM`` to the process.

        .. seealso:: :meth:`subprocess.Popen.terminate`
        Nr   r   s    r   Ú	terminatezProcess.terminate   ó   � ó    c                 ó   — y)zÑ
        Kills the process.

        On Windows, this calls ``TerminateProcess()``.
        On POSIX systems, this sends ``SIGKILL`` to the process.

        .. seealso:: :meth:`subprocess.Popen.kill`
        Nr   r   s    r   ÚkillzProcess.kill#   r   r   c                 ó   — y)z´
        Send a signal to the subprocess.

        .. seealso:: :meth:`subprocess.Popen.send_signal`

        :param signal: the signal number (e.g. :data:`signal.SIGHUP`)
        Nr   )r   Úsignals     r   Úsend_signalzProcess.send_signal.   r   r   c                 ó   — y)zThe process ID of the process.Nr   r   s    r   ÚpidzProcess.pid8   r   r   c                 ó   — y)zw
        The return code of the process. If the process has not yet terminated, this will
        be ``None``.
        Nr   r   s    r   Ú
returncodezProcess.returncode=   r   r   c                 ó   — y)z1The stream for the standard input of the process.Nr   r   s    r   ÚstdinzProcess.stdinE   r   r   c                 ó   — y)z2The stream for the standard output of the process.Nr   r   s    r   ÚstdoutzProcess.stdoutJ   r   r   c                 ó   — y)z8The stream for the standard error output of the process.Nr   r   s    r   ÚstderrzProcess.stderrO   r   r   N)ÚreturnÚint)r&   ÚNone)r   r   r&   r(   )r&   z
int | None)r&   zByteSendStream | None)r&   zByteReceiveStream | None)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   Úpropertyr   r   r!   r#   r%   r   r   r   r   r      så   „ Ù?àòó ðð òó ðð òó ðð òó ðð Øò-ó ó ð-ð Øòó ó ðð Øò@ó ó ð@ð ØòAó ó ðAð ØòGó ó ñGr   r   N)Ú
__future__r   Úabcr   r   r   Útypingr   Ú
_resourcesr   Ú_streamsr	   r
   r   r   r   r   ú<module>r3      s*   ðÝ "å Ý Ý  å %áß;ôEGˆmõ EGr   