Format: application/x-python-code
1 o
2
3 ;'h � @ sT d dl mZ d dlmZ d dlmZ ddlmZ ddlm Z m
4 Z
5 G dd� de�Zd S )
6 � )�annotations)�abstractmethod)�Signals� )�
7 AsyncResource)�ByteReceiveStream�ByteSendStreamc @ s� e Zd ZdZeddd��Zeddd��Zedd d
8 ��Zedd
9 d��Ze eddd���Z
10 e ed dd���Ze ed!dd���Ze ed"dd���Z
11 e ed"dd���ZdS )#�Processz5An asynchronous version of :class:`subprocess.Popen`.�return�intc � s �dS )z^
12 Wait until the process exits.
13
14 :return: the exit code of the process
15 N� ��selfr r �MC:\Users\shubh\Videos\agent\nova\Lib\site-packages\anyio/abc/_subprocesses.py�wait
16 s zProcess.wait�Nonec C � dS )z�
17 Terminates the process, gracefully if possible.
18
19 On Windows, this calls ``TerminateProcess()``.
20 On POSIX systems, this sends ``SIGTERM`` to the process.
21
22 .. seealso:: :meth:`subprocess.Popen.terminate`
23 Nr r
24 r r r � terminate � zProcess.terminatec C r )z�
25 Kills the process.
26
27 On Windows, this calls ``TerminateProcess()``.
28 On POSIX systems, this sends ``SIGKILL`` to the process.
29
30 .. seealso:: :meth:`subprocess.Popen.kill`
31 Nr r
32 r r r �kill r zProcess.kill�signalr c C r )z�
33 Send a signal to the subprocess.
34
35 .. seealso:: :meth:`subprocess.Popen.send_signal`
36
37 :param signal: the signal number (e.g. :data:`signal.SIGHUP`)
38 Nr )r r r r r �send_signal+ r zProcess.send_signalc C r )zThe process ID of the process.Nr r
39 r r r �pid5 r zProcess.pid�
40 int | Nonec C r )zw
41 The return code of the process. If the process has not yet terminated, this will
42 be ``None``.
43 Nr r
44 r r r �
45 returncode: r zProcess.returncode�ByteSendStream | Nonec C r )z1The stream for the standard input of the process.Nr r
46 r r r �stdinB r z
47 Process.stdin�ByteReceiveStream | Nonec C r )z2The stream for the standard output of the process.Nr r
48 r r r �stdoutG r zProcess.stdoutc C r )z8The stream for the standard error output of the process.Nr r
49 r r r �stderrL r zProcess.stderrN)r
50 r )r
51 r )r r r
52 r )r
53 r )r
54 r )r
55 r )�__name__�
56 __module__�__qualname__�__doc__r r r r r �propertyr r r r r r r r r r
57 s2
58
59 r N)�
60 __future__r �abcr r r Z
61 _resourcesr Z_streamsr r r r r r r �<module> s