o
    h                     @  sT   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	m
Z
 G dd deZd	S )
    )annotations)abstractmethod)Signals   )AsyncResource)ByteReceiveStreamByteSendStreamc                   @  s   e Zd ZdZedddZedddZedd	d
ZedddZe	edddZ
e	ed ddZe	ed!ddZe	ed"ddZe	ed"ddZdS )#Processz5An asynchronous version of :class:`subprocess.Popen`.returnintc                   s   dS )z^
        Wait until the process exits.

        :return: the exit code of the process
        N selfr   r   k/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/anyio/abc/_subprocesses.pywait   s    zProcess.waitNonec                 C     dS )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   r   r   r   	terminate       zProcess.terminatec                 C  r   )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   r   r   r   kill    r   zProcess.killsignalr   c                 C  r   )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   r   r   r   r   send_signal+   r   zProcess.send_signalc                 C  r   )zThe process ID of the process.Nr   r   r   r   r   pid5   r   zProcess.pid
int | Nonec                 C  r   )zw
        The return code of the process. If the process has not yet terminated, this will
        be ``None``.
        Nr   r   r   r   r   
returncode:   r   zProcess.returncodeByteSendStream | Nonec                 C  r   )z1The stream for the standard input of the process.Nr   r   r   r   r   stdinB   r   zProcess.stdinByteReceiveStream | Nonec                 C  r   )z2The stream for the standard output of the process.Nr   r   r   r   r   stdoutG   r   zProcess.stdoutc                 C  r   )z8The stream for the standard error output of the process.Nr   r   r   r   r   stderrL   r   zProcess.stderrN)r
   r   )r
   r   )r   r   r
   r   )r
   r   )r
   r   )r
   r   )__name__
__module____qualname____doc__r   r   r   r   r   propertyr   r   r   r   r   r   r   r   r   r	   
   s2    

	r	   N)
__future__r   abcr   r   r   
_resourcesr   _streamsr   r   r	   r   r   r   r   <module>   s    