← back to Atmos Game
assets/gen/.venv/lib/python3.12/site-packages/anyio/abc/__pycache__/_subprocesses.cpython-312.pyc
40 lines
�
c�bj � �Z � d dl mZ d dlmZ d dlmZ ddlmZ ddlm Z m
Z
G d� de� Zy )
� )�annotations)�abstractmethod)�Signals� )�
AsyncResource)�ByteReceiveStream�ByteSendStreamc �� � e Zd ZdZedd�� Zed
d�� Zed
d�� Zedd�� Ze edd�� � Z
e edd�� � Ze edd�� � Ze edd �� � Z
e edd
�� � Zy)�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 �n/Users/macstudio3/Projects/atmos-game/assets/gen/.venv/lib/python3.12/site-packages/anyio/abc/_subprocesses.py�waitzProcess.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 � terminatezProcess.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 �killzProcess.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_signalzProcess.send_signal+ r r c � � y)zThe process ID of the process.Nr
r s r �pidzProcess.pid5 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 �
returncodezProcess.returncode: r r c � � y)z1The stream for the standard input of the process.Nr
r s r �stdinz
Process.stdinB r r c � � y)z2The stream for the standard output of the process.Nr
r s r �stdoutzProcess.stdoutG r r c � � y)z8The stream for the standard error output of the process.Nr
r s r �stderrzProcess.stderrL r r N)�return�int)r% �None)r r r% r'