File: //usr/local/lib/python3.10/dist-packages/anyio/abc/__pycache__/_subprocesses.cpython-310.pyc
o
���g � @ sT d dl mZ d dlmZ d dlmZ ddlmZ ddlm Z m
Z
G dd� de�Zd S )
� )�annotations)�abstractmethod)�Signals� )�
AsyncResource)�ByteReceiveStream�ByteSendStreamc @ s� e Zd ZdZeddd��Zeddd��Zedd d
��Zedd
d��Ze eddd���Z
e ed dd���Ze ed!dd���Ze 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
s zProcess.wait�Nonec C � 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.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 zProcess.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 zProcess.send_signalc C r )zThe process ID of the process.Nr r
r r r �pid5 r zProcess.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 zProcess.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 zProcess.stdoutc C r )z8The stream for the standard error output of the process.Nr r
r r r �stderrL r zProcess.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