a
    %g                     @  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dZeddddZeddd	d
ZedddddZe	eddddZ
e	eddddZe	eddddZe	eddddZe	eddddZdS )Processz5An asynchronous version of :class:`subprocess.Popen`.int)returnc                   s   dS )z^
        Wait until the process exits.

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