Format: application/x-python-code
⬇ Download File (2.9 KB)
   1  o
   2  
   3  ;'h�@sTddlmZddlmZddlmZddlmZddlm	Z	m
   4  Z
   5  Gdd�de�Zd	S)
   6  �)�annotations)�abstractmethod)�Signals�)�
   7  AsyncResource)�ByteReceiveStream�ByteSendStreamc@s�eZdZdZeddd��Zeddd��Zedd	d
   8  ��Zedd
   9  d��Ze	eddd���Z
  10  e	ed dd���Ze	ed!dd���Ze	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  szProcess.wait�NonecC�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.terminatecCr)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 rzProcess.kill�signalrcCr)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)rrrrr�send_signal+rzProcess.send_signalcCr)zThe process ID of the process.Nrr
  39  rrr�pid5rzProcess.pid�
  40  int | NonecCr)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:rzProcess.returncode�ByteSendStream | NonecCr)z1The stream for the standard input of the process.Nrr
  46  rrr�stdinBrz
  47  Process.stdin�ByteReceiveStream | NonecCr)z2The stream for the standard output of the process.Nrr
  48  rrr�stdoutGrzProcess.stdoutcCr)z8The stream for the standard error output of the process.Nrr
  49  rrr�stderrLrzProcess.stderrN)r
  50  r)r
  51  r)rrr
  52  r)r
  53  r)r
  54  r)r
  55  r)�__name__�
  56  __module__�__qualname__�__doc__rrrrr�propertyrrrrrrrrrr	
  57  s2
  58  
  59  	r	N)�
  60  __future__r�abcrrrZ
  61  _resourcesrZ_streamsrrr	rrrr�<module>s