HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/anyio/abc/__pycache__/_subprocesses.cpython-310.pyc
o

���g�@sTddlmZddlmZddlmZddlmZddlm	Z	m
Z
Gdd�de�Zd	S)
�)�annotations)�abstractmethod)�Signals�)�
AsyncResource)�ByteReceiveStream�ByteSendStreamc@s�eZdZdZeddd��Zeddd��Zedd	d
��Zedd
d��Ze	eddd���Z
e	ed dd���Ze	ed!dd���Ze	ed"dd���Z
e	ed"dd���ZdS)#�Processz5An asynchronous version of :class:`subprocess.Popen`.�return�intc�s�dS)z^
        Wait until the process exits.

        :return: the exit code of the process
        N���selfrr�B/usr/local/lib/python3.10/dist-packages/anyio/abc/_subprocesses.py�wait
szProcess.wait�NonecC�dS)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�zProcess.terminatecCr)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 rzProcess.kill�signalrcCr)z�
        Send a signal to the subprocess.

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

        :param signal: the signal number (e.g. :data:`signal.SIGHUP`)
        Nr)rrrrr�send_signal+rzProcess.send_signalcCr)zThe process ID of the process.Nrr
rrr�pid5rzProcess.pid�
int | NonecCr)zw
        The return code of the process. If the process has not yet terminated, this will
        be ``None``.
        Nrr
rrr�
returncode:rzProcess.returncode�ByteSendStream | NonecCr)z1The stream for the standard input of the process.Nrr
rrr�stdinBrz
Process.stdin�ByteReceiveStream | NonecCr)z2The stream for the standard output of the process.Nrr
rrr�stdoutGrzProcess.stdoutcCr)z8The stream for the standard error output of the process.Nrr
rrr�stderrLrzProcess.stderrN)r
r)r
r)rrr
r)r
r)r
r)r
r)�__name__�
__module__�__qualname__�__doc__rrrrr�propertyrrrrrrrrrr	
s2

	r	N)�
__future__r�abcrrr�
_resourcesr�_streamsrrr	rrrr�<module>s